mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-17 00:47:03 +00:00
Don't cancel Actions on master/devel (#1750)
This commit is contained in:
parent
f96ad87d28
commit
7ae689d1dd
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -74,7 +74,15 @@ jobs:
|
||||
name: '${{ matrix.target.os }}-${{ matrix.target.cpu }} (${{ matrix.target.TEST_KIND }})'
|
||||
runs-on: ${{ matrix.builder }}
|
||||
steps:
|
||||
- name: Cancel Previous Runs
|
||||
- name: Get branch name
|
||||
shell: bash
|
||||
run: echo "##[set-output name=branch_name;]$(echo ${GITHUB_REF#refs/heads/})"
|
||||
id: get_branch
|
||||
|
||||
- name: Cancel Previous Runs (except master/devel)
|
||||
if: >
|
||||
steps.get_branch.outputs.branch_name != 'master' &&
|
||||
steps.get_branch.outputs.branch_name != 'devel'
|
||||
uses: styfle/cancel-workflow-action@0.5.0
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user