66 tag :
77 required : true
88 type : string
9- secrets :
10- homebrew_tap_rw :
11- required : true
129
1310permissions :
1411 contents : write
@@ -17,19 +14,31 @@ jobs:
1714 release :
1815 runs-on : ubuntu-latest
1916 steps :
20- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+ - name : Generate GitHub App Token
18+ id : app-token
19+ uses : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
20+ with :
21+ app-id : ${{ vars.GH_APP_ID }}
22+ private-key : ${{ secrets.GH_APP_PRIVATE_KEY }}
23+ owner : supabase
24+ repositories : homebrew-tap
25+
26+ - name : Checkout homebrew-tap repository
27+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2128 with :
2229 repository : supabase/homebrew-tap
2330 ref : " main"
24- token : ${{ secrets.homebrew_tap_rw }}
31+ token : ${{ steps.app-token.outputs.token }}
2532 fetch-depth : 0
33+
2634 - name : Compute tag and version
2735 id : vars
2836 run : |
2937 tag="${{ inputs.tag }}"
3038 echo "tag=${tag}" >> "$GITHUB_OUTPUT"
3139 # strip the leading v (if present)
3240 echo "version=${tag#v}" >> "$GITHUB_OUTPUT"
41+
3342 - name : Download Linux AMD64 package
3443 uses : robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1
3544 with :
5059 repository : " supabase/dbdev"
5160 tag : ${{ inputs.tag }}
5261 fileName : " dbdev-${{ inputs.tag }}-macos-arm64.tar.gz"
62+
5363 - name : Generate Manifest File
5464 run : |
5565 linux_amd64_hash=`shasum -a 256 dbdev-${{ inputs.tag }}-linux-amd64.tar.gz | cut -d" " -f1`
@@ -115,7 +125,7 @@ jobs:
115125 - name : Create Pull Request
116126 uses : peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
117127 with :
118- token : ${{ secrets.homebrew_tap_rw }}
128+ token : ${{ steps.app-token.outputs.token }}
119129 commit-message : " Release dbdev version v${{ steps.vars.outputs.version }}"
120130 title : " Release dbdev version v${{ steps.vars.outputs.version }}"
121131 body-path : PR_BODY.md
0 commit comments