Skip to content

Commit 9f80c36

Browse files
committed
chore(ci): minimal CI job 2
1 parent 4e23b15 commit 9f80c36

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Minimal App Token Push Test
1+
name: Minimal App Token Push & PR Test
22

33
on:
44
workflow_dispatch:
55

66
jobs:
7-
push-test:
7+
push-and-pr-test:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Generate App token
@@ -28,15 +28,21 @@ jobs:
2828
git config --global --unset credential.helper || true
2929
git config --local --unset credential.helper || true
3030
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
3531
3632
- name: Create and push branch
3733
run: |
3834
git checkout -b minimal-token-test
3935
touch minimal.txt
4036
git add minimal.txt
4137
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"

0 commit comments

Comments
 (0)