Skip to content

Commit c1cdb8b

Browse files
committed
fix: Use PAT for bump workflow to trigger CI
1 parent bdb2c3f commit c1cdb8b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/bump.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
bump:
1818
required: true
1919
type: string
20+
secrets:
21+
PLOTNIK_PAT:
22+
required: true
2023

2124
jobs:
2225
bump:
@@ -59,14 +62,15 @@ jobs:
5962

6063
- name: Create PR
6164
env:
62-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
GH_TOKEN: ${{ secrets.PLOTNIK_PAT }}
6366
run: |
6467
next="${{ steps.version.outputs.next }}"
6568
git config user.name "github-actions[bot]"
6669
git config user.email "github-actions[bot]@users.noreply.github.com"
6770
git checkout -b "bump/v$next"
6871
git add Cargo.toml Cargo.lock crates/plotnik-cli/Cargo.toml
6972
git commit -m "chore: Bump version to \`$next\`"
73+
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}"
7074
git push -u origin "bump/v$next"
7175
gh pr create \
7276
--title "chore: Bump version to \`$next\`" \

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,5 @@ jobs:
5454
uses: ./.github/workflows/bump.yml
5555
with:
5656
bump: patch
57-
permissions:
58-
contents: write
59-
pull-requests: write
57+
secrets:
58+
PLOTNIK_PAT: ${{ secrets.PLOTNIK_PAT }}

0 commit comments

Comments
 (0)