Skip to content

Commit

Permalink
👷 Add custom token for PR creation
Browse files Browse the repository at this point in the history
  • Loading branch information
flaxel committed Jun 6, 2024
1 parent f803577 commit 2b9f352
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ jobs:
- name: Find and Replace old versions
run: |
sed -i -E 's/(v[0-9]+.[0-9]+.[0-9]+)/${{ github.ref_name }}/g' README.md
- name: Get App Token
uses: actions/[email protected]
id: get_token
with:
app-id: ${{ vars.STAFFBASE_ACTIONS_APP_ID }}
private-key: ${{ secrets.STAFFBASE_ACTIONS_PRIVATE_KEY }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.get_token.outputs.token }}
title: ":memo: Update Readme Versions"
body: "all versions in the readme file are bumped"
commit-message: ":memo: update readme versions"
Expand Down

0 comments on commit 2b9f352

Please sign in to comment.