ci: Refactor conditions to check for branch events
This commit is contained in:
@@ -13,9 +13,8 @@ on:
|
|||||||
- rel-*
|
- rel-*
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
# Terminate all previous runs of the same workflow for pull requests
|
||||||
# Terminate all previous runs of the same workflow and branch/tag, except for main and release branches/tags
|
cancel-in-progress: "${{ github.event_name == 'pull_request' }}"
|
||||||
cancel-in-progress: "${{ !(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/rel-')) }}"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Prepopulate-Nix-Cache-Linux:
|
Prepopulate-Nix-Cache-Linux:
|
||||||
@@ -287,7 +286,7 @@ jobs:
|
|||||||
ghc: ['9.2.4']
|
ghc: ['9.2.4']
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
name: Build aarch64 (Cabal, GHC ${{ matrix.ghc }})
|
name: Build aarch64 (Cabal, GHC ${{ matrix.ghc }})
|
||||||
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/rel-') }}
|
if: "${{ github.event_name == 'push' }}"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
remotepath: ${{ steps.Remote-Dir.outputs.remotepath }}
|
remotepath: ${{ steps.Remote-Dir.outputs.remotepath }}
|
||||||
|
|||||||
Reference in New Issue
Block a user