Skip to content

Commit 810a140

Browse files
authored
Merge pull request #1726 from gastaldi/workflow_update
Using workflow concurrency
2 parents 6f61ce9 + a92ebc3 commit 810a140

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ on:
44
pull_request:
55
types: [opened, synchronize]
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
build:
913
runs-on: ubuntu-20.04
1014
steps:
1115
- uses: actions/checkout@v3
12-
with:
13-
ref: refs/pull/${{ github.event.pull_request.number }}/merge
14-
- uses: n1hility/cancel-previous-runs@v2
15-
with:
16-
token: ${{ secrets.GITHUB_TOKEN }}
1716

1817
- name: Set up ruby
1918
uses: ruby/setup-ruby@v1

.github/workflows/preview-teardown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
preview-teardown:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-latest
1010
steps:
1111
- name: Teardown surge preview
1212
id: deploy

.github/workflows/preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
preview:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
1313
steps:
1414
- name: Download PR Artifact

0 commit comments

Comments
 (0)