We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5dd208 commit e0f781aCopy full SHA for e0f781a
1 file changed
.github/workflows/test.yml
@@ -1,26 +1,17 @@
1
name: Test
2
3
on:
4
- push:
5
pull_request:
6
- workflow_dispatch:
+ types: [ labeled ]
7
8
jobs:
9
build:
+ if: contains(github.event.pull_request.labels.*.name, 'mylabel')
10
name: Build
11
runs-on: ubuntu-latest
12
-
13
steps:
14
- uses: actions/checkout@v3.1.0
15
- run: |
16
mkdir artifacts
17
- echo "===== Attempt 1 ====" > artifaces/${GITHUB_SHA}
18
- - name: Archive logs
19
- uses: actions/upload-artifact@v3
20
- if: always()
21
- with:
22
- name: resources
23
- retention-days: 1
24
- path: artifacts/
25
26
- - name: Find URL
+ echo ${GITHUB_REF}
+ echo ${GITHUB_SHA}
0 commit comments