aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/vim-patches.yml (renamed from .github/workflows/nightly.yaml)7
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/nightly.yaml b/.github/workflows/vim-patches.yml
index 431ccd8b61..5742b51158 100644
--- a/.github/workflows/nightly.yaml
+++ b/.github/workflows/vim-patches.yml
@@ -1,4 +1,4 @@
-name: Nightly
+name: vim-patches
on:
schedule:
- cron: '3 3 * * *'
@@ -6,6 +6,9 @@ on:
jobs:
update-vim-patches:
runs-on: ubuntu-20.04
+ permissions:
+ contents: write
+ pull-requests: write
env:
VIM_SOURCE_DIR: ${{ format('{0}/vim-src', github.workspace) }}
VERSION_BRANCH: marvim/ci-version-update
@@ -46,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