mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-21 19:08:24 +01:00
Update PR-Demo-Comment.yml
This commit is contained in:
parent
5e1aac0b84
commit
0fb9e18636
8
.github/workflows/PR-Demo-Comment.yml
vendored
8
.github/workflows/PR-Demo-Comment.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user