Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/A.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: A
on:
push:

concurrency:
group: foo
cancel-in-progress: true

jobs:
job:
name: A
runs-on: ubuntu-latest
steps:
- name: Sleep
run: sleep 20
15 changes: 15 additions & 0 deletions .github/workflows/B.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: B
on:
push:

concurrency:
group: foo
cancel-in-progress: true

jobs:
job:
name: B
runs-on: ubuntu-latest
steps:
- name: Sleep
run: sleep 20
53 changes: 53 additions & 0 deletions .github/workflows/C.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: C
on:
push:

jobs:
job1:
name: C1
runs-on: ubuntu-latest
concurrency:
group: C
cancel-in-progress: true
steps:
- name: Sleep
run: sleep 20
job2:
name: C2
runs-on: ubuntu-latest
concurrency:
group: C
cancel-in-progress: true
steps:
- name: Sleep
run: sleep 20
job3:
name: C3
runs-on: ubuntu-latest
concurrency:
group: C
cancel-in-progress: true
steps:
- name: Sleep
run: sleep 20
job4:
name: C4
runs-on: ubuntu-latest
concurrency:
group: C
cancel-in-progress: true
steps:
- name: Sleep
run: sleep 20
jobX:
name: matrix ${{matrix.n}}
runs-on: ubuntu-latest
strategy:
matrix:
n: [ 1, 2, 3, 4 ]
concurrency:
group: CM
cancel-in-progress: true
steps:
- name: Sleep
run: sleep 20
15 changes: 6 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Test
on:
pull_request_target:
branches: [ '🙄' ]
pull_request:
push:
tags: [ testtag ]


jobs:
job:
name: Test
name: Test expressions
runs-on: ubuntu-latest
steps:
- name: Env
run: env
- name: Event data
run: cat $GITHUB_EVENT_PATH
- name: Expr
env:
XXX: build-${{ github.event_name == 'push' && github.run_id || 'pr' }}-${{ github.ref }}
run: echo "$XXX"