Skip to content

Commit 7276357

Browse files
committed
updated to use environment var
1 parent a2c78e6 commit 7276357

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/pull-request-build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@ jobs:
3939
- name: Build
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
REPO: ${{ github.repository }}
4243
HEAD_REF: ${{ github.event.pull_request.head.ref }}
44+
PR_NUMBER: ${{ github.event.pull_request.number }}
45+
RUN_ID: ${{ github.run_id }}
4346
run: |
4447
./$DOWNLOAD_FOLDER/$SCRIPT_LOCATION \
45-
--repo "${{ github.repository }}" \
48+
--repo "$REPO" \
4649
--branch "$HEAD_REF" \
47-
--pr-number "${{ github.event.pull_request.number }}" \
48-
--run-id "${{ github.run_id }}"
49-
timeout-minutes: 180
50+
--pr-number "$PR_NUMBER" \
51+
--run-id "$RUN_ID"
52+
timeout-minutes: 180

0 commit comments

Comments
 (0)