neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit bf24298feaeab9dd5fea197b4b4422fee31ac33c
parent 5da0d513b9ce1cc7e5458c14461ed4b0dad833da
Author: dundargoc <gocdundar@gmail.com>
Date:   Sun, 10 Mar 2024 13:49:00 +0100

ci: simplify concurrency string

`github.ref` is now defined for both pull requests and pushes, meaning
that it can be used to simplify the concurrency group.
`cancel-in-progress` is set to true only if the trigger is a pull
request, as we don't want master runs to cancel each other out.

Diffstat:
M.github/workflows/build.yml | 4++--
M.github/workflows/codeql.yml | 4++--
M.github/workflows/optional.yml | 4++--
M.github/workflows/test.yml | 4++--
4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml @@ -12,8 +12,8 @@ on: - '.github/**' concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} env: BIN_DIR: ${{ github.workspace }}/bin diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml @@ -1,8 +1,8 @@ name: "codeql" concurrency: - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} on: push: diff --git a/.github/workflows/optional.yml b/.github/workflows/optional.yml @@ -5,8 +5,8 @@ on: workflow_dispatch: concurrency: - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} env: INSTALL_PREFIX: ${{ github.workspace }}/nvim-install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml @@ -12,8 +12,8 @@ on: - 'contrib/**' concurrency: - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} env: ASAN_OPTIONS: detect_leaks=1:check_initialization_order=1:log_path=${{ github.workspace }}/build/log/asan:intercept_tls_get_addr=0