Skip to content

Commit

Permalink
ci - update to use native concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
itewk committed Feb 3, 2023
1 parent 361d402 commit 3b916bb
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,23 @@ on:
branches: [ main ]
workflow_dispatch:

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

env:
GITHUB_EVENT_REPOSITORY_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
GITHUB_EVENT_NUMBER: ${{ github.event.number }}
REGISTRY_URI: ${{ secrets.REGISTRY_URI }}
REGISTRY_REPOSITORY: ${{ secrets.REGISTRY_REPOSITORY }}

jobs:
cancel-previous:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

## UBI8 ##

#####################
# ploigos-base_ubi8 #
#####################
ploigos-base_ubi8:
needs:
- cancel-previous

runs-on: ubuntu-latest

env:
Expand Down Expand Up @@ -459,9 +452,6 @@ jobs:
# ploigos-jenkins-init #
########################
ploigos-jenkins-init:
needs:
- cancel-previous

runs-on: ubuntu-latest

env:
Expand Down Expand Up @@ -2034,9 +2024,6 @@ jobs:
# ploigos-jenkins #
###################
ploigos-jenkins:
needs:
- cancel-previous

runs-on: ubuntu-latest

env:
Expand Down

0 comments on commit 3b916bb

Please sign in to comment.