ci(gha/vim-patches): Create PR against branch running the workflow

Avoids hard-coding branch names.

[skip ci]
This commit is contained in:
James McCoy
2021-04-26 23:41:25 -04:00
parent 2601296c3f
commit 0ab1f9ff3f

View File

@@ -49,4 +49,4 @@ jobs:
git add -u
git commit -m 'version.c: update [skip ci]'
git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${VERSION_BRANCH}
gh pr create --fill --label vim-patch --base master --head ${VERSION_BRANCH} || true
gh pr create --fill --label vim-patch --base ${GITHUB_REF#refs/heads/} --head ${VERSION_BRANCH} || true