aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-04-27 07:22:28 -0400
committerGitHub <noreply@github.com>2021-04-27 07:22:28 -0400
commitfbe18d9ca41a419414cb112d0a426aa8803c6236 (patch)
treec7cf9279939f7892fb941c94d2f0941a1244b807
parentecf075eb297e647a552fb12efd00fa5834bc4d61 (diff)
parent0ab1f9ff3fb2036e9ef51672193620aff704884e (diff)
downloadrneovim-fbe18d9ca41a419414cb112d0a426aa8803c6236.tar.gz
rneovim-fbe18d9ca41a419414cb112d0a426aa8803c6236.tar.bz2
rneovim-fbe18d9ca41a419414cb112d0a426aa8803c6236.zip
Merge pull request #14448 from jamessan/nightly-ci-permissions
Update permissions for vim-patches workflow
-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