Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
bump:
required: true
type: string
secrets:
PLOTNIK_PAT:
required: true

jobs:
bump:
Expand Down Expand Up @@ -59,14 +62,15 @@ jobs:

- name: Create PR
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.PLOTNIK_PAT }}
run: |
next="${{ steps.version.outputs.next }}"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b "bump/v$next"
git add Cargo.toml Cargo.lock crates/plotnik-cli/Cargo.toml
git commit -m "chore: Bump version to \`$next\`"
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}"
git push -u origin "bump/v$next"
gh pr create \
--title "chore: Bump version to \`$next\`" \
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,5 @@ jobs:
uses: ./.github/workflows/bump.yml
with:
bump: patch
permissions:
contents: write
pull-requests: write
secrets:
PLOTNIK_PAT: ${{ secrets.PLOTNIK_PAT }}