Publish releases #35
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: Minimal App Token Push Test | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| push-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate App token | |
| id: app-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.PRIVATE_KEY }} | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure git user | |
| run: | | |
| git config --global user.name "supabase-releaser[bot]" | |
| git config --global user.email "supabase-releaser[bot]@users.noreply.github.com" | |
| - name: Remove credential helpers and set remote | |
| run: | | |
| git config --global --unset credential.helper || true | |
| git config --local --unset credential.helper || true | |
| git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/supabase/supabase-js.git | |
| echo "Remote:" | |
| git remote -v | |
| echo "Credential helper:" | |
| git config --show-origin --get credential.helper || true | |
| - name: Create and push branch | |
| run: | | |
| git checkout -b minimal-token-test | |
| touch minimal.txt | |
| git add minimal.txt | |
| git commit -m "test: minimal token branch push" | |
| git push origin minimal-token-test |