Update PR-Demo-Comment.yml

This commit is contained in:
Anthony Stirling 2024-11-17 15:53:29 +00:00 committed by GitHub
parent 5e1aac0b84
commit 0fb9e18636
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ jobs:
# Only run on PR comments that contain @deployPR from authorized users # Only run on PR comments that contain @deployPR from authorized users
if: | if: |
github.event.issue.pull_request && 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 == 'frooodle' ||
github.event.comment.user.login == 'sf298' || github.event.comment.user.login == 'sf298' ||
@ -21,6 +21,7 @@ jobs:
) )
outputs: outputs:
pr_number: ${{ steps.get-pr.outputs.pr_number }} pr_number: ${{ steps.get-pr.outputs.pr_number }}
pr_branch: ${{ steps.get-pr-branch.outputs.result }}
steps: steps:
- name: Get PR data - name: Get PR data
@ -55,14 +56,13 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: 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 uses: actions/setup-java@v4
with: with:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
gradle-version: 8.7
- name: Run Gradle Command - name: Run Gradle Command
run: ./gradlew clean build run: ./gradlew clean build