From 0fb9e18636eb53843d000cb6642934a216791b84 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sun, 17 Nov 2024 15:53:29 +0000 Subject: [PATCH] Update PR-Demo-Comment.yml --- .github/workflows/PR-Demo-Comment.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/PR-Demo-Comment.yml b/.github/workflows/PR-Demo-Comment.yml index 1d282fb4a..7a4194f67 100644 --- a/.github/workflows/PR-Demo-Comment.yml +++ b/.github/workflows/PR-Demo-Comment.yml @@ -10,7 +10,7 @@ jobs: # Only run on PR comments that contain @deployPR from authorized users if: | github.event.issue.pull_request && - contains(github.event.comment.body, '@deployPR') && + contains(toLowercase(github.event.comment.body), 'prdeploy') && ( github.event.comment.user.login == 'frooodle' || github.event.comment.user.login == 'sf298' || @@ -21,6 +21,7 @@ jobs: ) outputs: pr_number: ${{ steps.get-pr.outputs.pr_number }} + pr_branch: ${{ steps.get-pr-branch.outputs.result }} steps: - name: Get PR data @@ -55,14 +56,13 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ steps.get-pr-branch.outputs.result }} + ref: ${{ needs.check-comment.outputs.pr_branch }} - - name: Set up JDK and Gradle + - name: Set up JDK uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' - gradle-version: 8.7 - name: Run Gradle Command run: ./gradlew clean build