Skip to content

Commit

Permalink
update the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
syJSdev committed May 10, 2023
1 parent 3860a50 commit 28f906e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ on:
- premajor
- major
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

# Checkout project repository
- name: Checkout
uses: actions/checkout@v3
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
verify:
name: Verify
Expand All @@ -16,11 +20,6 @@ jobs:
CI: true

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

# Checkout project repository
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit 28f906e

Please sign in to comment.