Skip to content

Commit 990b7b8

Browse files
committed
Automation proc update
1 parent 2a3dc33 commit 990b7b8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/sync-upstream.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ permissions:
3333
jobs:
3434
sync:
3535
runs-on: ubuntu-latest
36+
env:
37+
PR_CREATE_TOKEN: ${{ secrets.PR_CREATE_TOKEN }}
3638
steps:
3739
- name: Checkout repository
3840
uses: actions/checkout@v4
@@ -91,10 +93,10 @@ jobs:
9193
git push --force-with-lease origin "$BRANCH":refs/heads/"$BRANCH"
9294
9395
- name: Create Pull Request (PAT)
94-
if: steps.diff.outputs.changed == 'true' && secrets.PR_CREATE_TOKEN != ''
96+
if: steps.diff.outputs.changed == 'true' && env.PR_CREATE_TOKEN != ''
9597
uses: peter-evans/create-pull-request@v6
9698
with:
97-
token: ${{ secrets.PR_CREATE_TOKEN }}
99+
token: ${{ env.PR_CREATE_TOKEN }}
98100
branch: ci/sync-upstream
99101
title: 'Sync from upstream with transformations'
100102
body: |
@@ -108,7 +110,7 @@ jobs:
108110
signoff: true
109111

110112
- name: Create Pull Request (default token fallback)
111-
if: steps.diff.outputs.changed == 'true' && (secrets.PR_CREATE_TOKEN == '' || secrets.PR_CREATE_TOKEN == null)
113+
if: steps.diff.outputs.changed == 'true' && env.PR_CREATE_TOKEN == ''
112114
uses: peter-evans/create-pull-request@v6
113115
with:
114116
branch: ci/sync-upstream

0 commit comments

Comments
 (0)