File tree Expand file tree Collapse file tree 2 files changed +19
-14
lines changed Expand file tree Collapse file tree 2 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -223,9 +223,12 @@ jobs:
223223 git push origin
224224
225225 - name : pull-request
226- uses : repo-sync/pull-request@v2
227- with :
228- destination_branch : " develop"
229- pr_title : " Sync back"
230- pr_body : " An automated PR to sync changes back"
231-
226+ env :
227+ GH_TOKEN : ${{ github.token }}
228+ run : |
229+ gh_pr_up() {
230+ gh pr create "$@" || gh pr edit "$@"
231+ }
232+ gh_pr_up -B "develop" \
233+ --title "Sync back" \
234+ --body "An automated PR to sync changes back"
Original file line number Diff line number Diff line change @@ -81,12 +81,14 @@ jobs:
8181 echo "abort=0" >> $GITHUB_OUTPUT
8282
8383 - name : pull-request
84- uses : repo-sync/pull-request@v2
8584 if : steps.main.outputs.abort == 0
86- with :
87- github_token : ${{ secrets.GITHUB_TOKEN }}
88- source_branch : ${{ env.UPDATE_BRANCH }}
89- destination_branch : ${{ steps.main.outputs.current_branch }}
90- pr_title : " Update from template"
91- pr_body : " An automated PR to sync changes from the template into this repo"
92-
85+ env :
86+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
87+ run : |
88+ gh_pr_up() {
89+ gh pr create "$@" || gh pr edit "$@"
90+ }
91+ gh_pr_up -B "${{ steps.main.outputs.current_branch }}" \
92+ -H "${{ env.UPDATE_BRANCH }}" \
93+ --title "Update from template" \
94+ --body "An automated PR to sync changes from the template into this repo"
You can’t perform that action at this time.
0 commit comments