Merge pull request #14448 from jamessan/nightly-ci-permissions

Update permissions for vim-patches workflow
This commit is contained in:
James McCoy
2021-04-27 07:22:28 -04:00
committed by GitHub

View File

@@ -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