Skip to content

Commit 2acbaa2

Browse files
authored
Update patch-release.yml
1 parent e4b95c7 commit 2acbaa2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/patch-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout current branch
2121
uses: actions/checkout@v3
22+
with:
23+
token: ${{ secrets.PAT_TOKEN }}
2224

2325
- name: Move patches
2426
run: mv patches /tmp/patches
@@ -52,18 +54,18 @@ jobs:
5254
fi
5355
5456
- name: Clean tags and push new
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
5559
run: |
5660
git tag -d "${{ inputs.tag }}" || echo "Local tag does not exist, skipping delete."
5761
git push --delete origin "${{ inputs.tag }}" || echo "Remote tag does not exist, skipping delete."
5862
git tag -a "${{ inputs.tag }}" -m "Tagging version ${{ inputs.tag }} after applying patches"
5963
git push origin "${{ inputs.tag }}" --force
6064
echo '{"ref":"${{ inputs.tag }}"}' | gh workflow run build.yml --ref "ci" --repo "blender/gitea" --json
61-
env:
62-
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
6365
6466
- name: Push branch
6567
if: always()
6668
run: git push origin apply-patches-${{ inputs.tag }} --force
6769
env:
68-
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
70+
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
6971

0 commit comments

Comments
 (0)