Skip to content

Commit

Permalink
Merge pull request #243 from snow-actions/workflows-write-permission
Browse files Browse the repository at this point in the history
Workflows write permission
  • Loading branch information
SnowCait committed Dec 20, 2022
2 parents c361205 + b2d77c3 commit b293b16
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/increment-version.yml
Expand Up @@ -19,7 +19,14 @@ jobs:
timeout-minutes: 5

steps:
- id: generate_token
uses: tibdex/github-app-token@v1.7.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v3
with:
token: ${{ steps.generate_token.outputs.token }}
- name: Version up
id: version
run: |
Expand All @@ -31,11 +38,6 @@ jobs:
env:
INCREMENT_VERSION: ${{ github.event.inputs.increment-version }}
- uses: snow-actions/git-config-user@v1.0.0
- id: generate_token
uses: tibdex/github-app-token@v1.7.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Commit & PR
run: |
set -x
Expand Down

0 comments on commit b293b16

Please sign in to comment.