File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 1
- name : Minimal App Token Push Test
1
+ name : Minimal App Token Push & PR Test
2
2
3
3
on :
4
4
workflow_dispatch :
5
5
6
6
jobs :
7
- push-test :
7
+ push-and-pr- test :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- name : Generate App token
@@ -28,15 +28,21 @@ jobs:
28
28
git config --global --unset credential.helper || true
29
29
git config --local --unset credential.helper || true
30
30
git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/supabase/supabase-js.git
31
- echo "Remote:"
32
- git remote -v
33
- echo "Credential helper:"
34
- git config --show-origin --get credential.helper || true
35
31
36
32
- name : Create and push branch
37
33
run : |
38
34
git checkout -b minimal-token-test
39
35
touch minimal.txt
40
36
git add minimal.txt
41
37
git commit -m "test: minimal token branch push"
42
- git push origin minimal-token-test
38
+ git push origin minimal-token-test
39
+
40
+ - name : Create PR with gh CLI
41
+ env :
42
+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
43
+ run : |
44
+ gh pr create \
45
+ --base master \
46
+ --head minimal-token-test \
47
+ --title "Minimal token push test" \
48
+ --body "Automated PR from minimal App token workflow"
You can’t perform that action at this time.
0 commit comments