File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -105,20 +105,25 @@ jobs:
105
105
- name : Set git remote to use App token
106
106
run : git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/supabase/supabase-js.git
107
107
108
- - name : Test App token git push
108
+ - name : Authenticate gh CLI with App token
109
109
env :
110
- RELEASE_GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
110
+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
111
+ run : |
112
+ gh auth login --with-token
113
+
114
+ - name : Create and push branch with gh CLI
111
115
run : |
112
116
git checkout --orphan test-token-push
113
117
git commit --allow-empty -m "chore(repo): test push"
114
- # Unset credential helper so git does NOT use GITHUB_TOKEN
115
- git config --global --unset credential.helper || true
116
- git config --unset credential.helper || true
117
- # Set remote to use the GitHub App token
118
- git remote set-url origin https://x-access-token:${RELEASE_GITHUB_TOKEN}@github.com/supabase/supabase-js.git
119
- # Optionally: show remote for debug (token will be masked in logs)
120
- git remote -v
121
118
git push origin test-token-push
119
+
120
+ - name : Create pull request with gh CLI
121
+ run : |
122
+ gh pr create \
123
+ --base master \
124
+ --head test-token-push \
125
+ --title "chore(repo): test push" \
126
+ --body "Automated PR for test-token-push"
122
127
123
128
- name : Release
124
129
env :
You can’t perform that action at this time.
0 commit comments