Skip to content

Commit

Permalink
fix: gh action release token (#864)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwagner committed May 8, 2024
1 parent 8344b27 commit 5e1f575
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate app token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Trigger Release Workflow
run: |
url_="https://github.com/luckyframework/lucky_cli/archive/refs/tags/${{ github.ref_name }}.zip"
Expand All @@ -95,13 +101,19 @@ jobs:
-f sha256=$sha_ \
-f version=$version_
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

scoop-lucky:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate app token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Trigger Release Workflow
run: |
url_="https://github.com/luckyframework/lucky_cli/releases/download/${{ github.ref_name }}/lucky-${{ github.ref_name }}-windows-amd64.zip"
Expand All @@ -115,4 +127,4 @@ jobs:
-f sha256=$sha_ \
-f version=$version_
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

0 comments on commit 5e1f575

Please sign in to comment.