Skip to content

Commit

Permalink
Try using app token for the tag creation (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe authored Jun 8, 2022
1 parent e03f601 commit 9a20509
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,15 @@ jobs:
echo "::set-output name=newTag::$(if [ -z "$TAG" ]; then echo $new_tag; else echo $TAG; fi)"
env:
TAG: ${{ github.event.inputs.tag }}
- uses: tibdex/github-app-token@v1.5.2
id: gh-api-token
with:
app_id: ${{ secrets.GH_APP_STRIPE_OPENAPI_APP_ID }}
private_key: ${{ secrets.GH_APP_STRIPE_OPENAPI_PRIVATE_KEY }}
- name: Create tag
uses: actions/github-script@v5
with:
token: ${{ steps.gh-api-token.outputs.token }}
script: |
github.rest.git.createRef({
owner: context.repo.owner,
Expand Down

0 comments on commit 9a20509

Please sign in to comment.