Skip to content

Commit 1668c2f

Browse files
committed
Using workflow concurrency
1 parent 9fdad16 commit 1668c2f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 6 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:
9-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
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

0 commit comments

Comments
 (0)