mirror of
https://github.com/neovim/neovim.git
synced 2026-06-16 16:51:19 +00:00
Bumps the github-actions group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [github/codeql-action](https://github.com/github/codeql-action). Updates `actions/checkout` from 6.0.2 to 6.0.3 - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v6.0.2...v6.0.3) Updates `github/codeql-action` from 4.36.0 to 4.36.1 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v4.36.0...v4.36.1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: github/codeql-action dependency-version: 4.36.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
63 lines
1.9 KiB
YAML
63 lines
1.9 KiB
YAML
name: vim-patches
|
|
on:
|
|
schedule:
|
|
- cron: '3 3 * * *'
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
update-vim-patches:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
env:
|
|
VIM_SOURCE_DIR: ${{ github.workspace }}/vim-src
|
|
VERSION_BRANCH: marvim/ci-version-update
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v6.0.3
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- uses: actions/checkout@v6.0.3
|
|
with:
|
|
repository: vim/vim
|
|
path: ${{ env.VIM_SOURCE_DIR }}
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- run: sudo apt-get install libfuse2
|
|
|
|
- run: |
|
|
gh release download -R neovim/neovim -p nvim-linux-x86_64.appimage
|
|
chmod a+x nvim-linux-x86_64.appimage
|
|
mkdir -p $HOME/.local/bin
|
|
mv nvim-linux-x86_64.appimage $HOME/.local/bin/nvim
|
|
printf '%s\n' "$HOME/.local/bin" >> $GITHUB_PATH
|
|
|
|
- name: Set up git config
|
|
run: |
|
|
git config --global user.name 'marvim'
|
|
git config --global user.email 'marvim@users.noreply.github.com'
|
|
|
|
- name: Update src/version.c
|
|
id: update-version
|
|
run: |
|
|
git checkout -b ${VERSION_BRANCH}
|
|
nvim -l scripts/vimpatch.lua
|
|
printf 'NEW_PATCHES=%s\n' $([ -z "$(git diff)" ]; echo $?) >> $GITHUB_OUTPUT
|
|
|
|
- name: Automatic PR
|
|
if: ${{ steps.update-version.outputs.NEW_PATCHES != 0 }}
|
|
run: |
|
|
git add -u
|
|
TMP_FILE=$(mktemp)
|
|
printf 'docs: update version.c\n\n' > ${TMP_FILE}
|
|
bash scripts/vim-patch.sh -n >> ${TMP_FILE}
|
|
git commit -F ${TMP_FILE}
|
|
git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${VERSION_BRANCH}
|
|
gh pr create --draft --fill --label vim-patch --base ${GITHUB_REF#refs/heads/} --head ${VERSION_BRANCH} || true
|