Skip to content

Commit

Permalink
ci: update token generation in tagging workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yorifuji committed Jun 9, 2024
1 parent c694241 commit 0c0e3f1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tagging-on-approved.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,15 @@ jobs:
run: |
echo "BUMP_VERSION=$(sed -n 's/^version: *\([^ ]*\) *$/\1/p' pubspec.yaml)" >> $GITHUB_ENV
- id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APPS_APP_ID }}
private-key: ${{ secrets.APPS_PRIVATE_KEY }}

- name: create tag and release note
env:
GH_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
BUMP_VERSION: ${{ env.BUMP_VERSION }}
run: |
gh release create v$BUMP_VERSION --generate-notes

0 comments on commit 0c0e3f1

Please sign in to comment.