Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

Commit f37dbe1

Browse files
authored
Merge pull request #25 from xdev-software/update-from-template
Update from template
2 parents 07b1823 + 7f6fd29 commit f37dbe1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/update-from-template.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ jobs:
8686
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8787
run: |
8888
gh_pr_up() {
89-
gh pr create "$@" || gh pr edit "$@"
89+
gh pr create -H "${{ env.UPDATE_BRANCH }}" "$@" || git checkout "${{ env.UPDATE_BRANCH }}" && gh pr edit "$@"
9090
}
9191
gh_pr_up -B "${{ steps.main.outputs.current_branch }}" \
92-
-H "${{ env.UPDATE_BRANCH }}" \
9392
--title "Update from template" \
9493
--body "An automated PR to sync changes from the template into this repo"

0 commit comments

Comments
 (0)