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
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