Skip to content

Commit

Permalink
Merge pull request neovim#14448 from jamessan/nightly-ci-permissions
Browse files Browse the repository at this point in the history
Update permissions for vim-patches workflow
  • Loading branch information
jamessan authored Apr 27, 2021
2 parents ecf075e + 0ab1f9f commit fbe18d9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Nightly
name: vim-patches
on:
schedule:
- cron: '3 3 * * *'

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
Expand Down Expand Up @@ -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

0 comments on commit fbe18d9

Please sign in to comment.