Publish releases #48
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish releases | |
| on: | |
| workflow_dispatch: | |
| env: | |
| NODE_VERSION: "20" | |
| jobs: | |
| trigger-update-js-libs: | |
| name: Trigger Update JS Libs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate token | |
| id: app-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.PRIVATE_KEY }} | |
| owner: supabase | |
| repositories: supabase | |
| - name: Show token permissions | |
| run: | | |
| curl -H "Authorization: token ${{ steps.app-token.outputs.token }}" https://api.github.com/ | |
| - name: Show token permissions for supabase/supabase | |
| run: | | |
| curl -i -H "Authorization: token ${{ steps.app-token.outputs.token }}" \ | |
| https://api.github.com/repos/supabase/supabase | grep "x-accepted-github-permissions" | |
| curl -i -H "Authorization: token ${{ steps.app-token.outputs.token }}" \ | |
| https://api.github.com/user | grep login | |
| - name: Trigger supabase/supabase update-js-libs workflow | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| script: | | |
| await github.rest.actions.createWorkflowDispatch({ | |
| owner: 'supabase', | |
| repo: 'supabase', | |
| workflow_id: 'update-js-libs.yml', | |
| ref: 'master', | |
| inputs: { | |
| version: '2.74.0', | |
| source: 'supabase-js-stable-release' | |
| } | |
| }); | |
| trigger-supabase-docs-update: | |
| name: Trigger Supabase Docs Update | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate token | |
| id: app-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.PRIVATE_KEY }} | |
| owner: supabase | |
| repositories: supabase | |
| - name: Trigger supabase/supabase docs workflow | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ steps.app-token.outputs.token }} | |
| script: | | |
| await github.rest.actions.createWorkflowDispatch({ | |
| owner: 'supabase', | |
| repo: 'supabase', | |
| workflow_id: 'docs-js-libs-update.yml', | |
| ref: 'master', | |
| inputs: { | |
| version: '2.74.0', | |
| source: 'supabase-js-stable-release' | |
| } | |
| }); |