Skip to content

Commit

Permalink
update checkout action and use concurrency instead of cancel-workflow…
Browse files Browse the repository at this point in the history
…-action

Signed-off-by: Karl W. Schulz <karl.schulz@amd.com>
  • Loading branch information
koomie committed Mar 21, 2024
1 parent 65486cb commit 1ae67a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/rhel-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
Expand All @@ -21,9 +25,6 @@ jobs:
image: colramos/target-images:rhel8
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Cancel any previous runs
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
- name: Install baseline OS dependencies
run: |
yum -y update
Expand All @@ -32,7 +33,7 @@ jobs:
yum -y install cmake3
yum -y install which
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Python prereqs
run: |
python3.9 -m pip install -r requirements.txt
Expand Down

0 comments on commit 1ae67a1

Please sign in to comment.