Skip to content

Commit

Permalink
ci: specific local:remote branch --set-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Sep 24, 2023
1 parent 4b4b6d2 commit 738be01
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/trigger_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
required: true

env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUSH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
trigger_pr:
Expand All @@ -31,12 +31,14 @@ jobs:
git add static/changes.sql
git commit -m "feat: add wonder ${{ github.event.inputs.name}}"
git push --set-upstream https://x-access-token:[email protected]/${{ github.repository }}.git \
origin feat/${{ github.event.inputs.name }}
git push --set-upstream https://x-access-token:[email protected]/${{ github.repository }}.git \
feat/${{ github.event.inputs.name }}:feat/${{ github.event.inputs.name }}
- name: Create PR via API
run: |
PAT='github_'"pat_11BC"'ZL43Q0sWKIX4ijCone_iuLVXdzQO94OjdvSCyEEVp6aI90G0XPumeUHx9M4EgpLERYVN6Sa9W05UE8';
PAT='github_'"pat_11BC"'ZL43Q0sWKIX4ijCone_iuLVXdzQO94OjdvSCyEEVp6aI90G0XPumeUHx9M4EgpLERYVN6Sa9W05UE8'
response=$(curl -X POST \
-H "Authorization: Bearer ${PAT}" \
-H "Accept: application/vnd.github+json" \
Expand Down

0 comments on commit 738be01

Please sign in to comment.