Skip to content

Commit e012fcc

Browse files
authored
chore: Add GitHub App
1 parent f379a73 commit e012fcc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ jobs:
102102
with:
103103
name: sha256
104104

105+
# GitHub Apps
106+
- name: Generate github apps token
107+
id: app-token
108+
uses: actions/create-github-app-token@v1
109+
with:
110+
app-id: ${{ secrets.FLUTTEGEN_APP_ID }}
111+
private-key: ${{ secrets.FLUTTEGEN_APP_PRIVATE_KEY }}
112+
owner: ${{ github.repository_owner }}
113+
105114
- id: version
106115
run: echo "::set-output name=version::${GITHUB_REF##*/}"
107116

@@ -112,7 +121,7 @@ jobs:
112121
echo ::set-output name=sha256_macos::$(cat fluttergen-macos.sha256 | awk '{ print $1 }')
113122
- uses: peter-evans/repository-dispatch@v3
114123
with:
115-
token: ${{ secrets.PAT_FLUTTERGEN }}
124+
token: ${{ steps.app-token.outputs.token }}
116125
repository: FlutterGen/homebrew-tap
117126
event-type: update-tap
118127
client-payload: '{ "sha256_linux": "${{ steps.checksum.outputs.sha256_linux }}", "sha256_macos": "${{ steps.checksum.outputs.sha256_macos }}", "version": "${{ steps.version.outputs.version }}" }'

0 commit comments

Comments
 (0)