HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //home/ubuntu/neovim/.github/workflows/vim_patches.yml
name: vim-patches
on:
  schedule:
    - cron: '3 3 * * *'
  workflow_dispatch:

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@v4
        with:
          fetch-depth: 0

      - uses: actions/checkout@v4
        with:
          repository: vim/vim
          path: ${{ env.VIM_SOURCE_DIR }}
          fetch-depth: 0

      - run: sudo apt-get install libfuse2

      - run: |
          gh release download -R neovim/neovim -p nvim.appimage
          chmod a+x nvim.appimage
          mkdir -p $HOME/.local/bin
          mv nvim.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 -V1 -es -i NONE +'luafile scripts/vimpatch.lua' +q
          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
          git commit -m 'docs: update version.c'
          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