File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : exampleSite preview
2
2
3
3
on :
4
+ release :
5
+ types :
6
+ - published
4
7
pull_request :
5
8
branches :
6
9
- " *"
17
20
environment="preview"
18
21
theme_version=""
19
22
23
+ echo ${{ github.head_ref || github.ref_name }}
24
+
20
25
curl -L \
21
26
-X POST \
22
27
-H "Accept: application/vnd.github+json" \
Original file line number Diff line number Diff line change 1
1
name : Slack notification for new theme release
2
2
3
3
on :
4
- release :
5
- types :
6
- - published
4
+ workflow_run :
5
+ workflows :
6
+ - " exampleSite preview"
7
+ types : [completed]
7
8
8
9
permissions :
9
10
contents : read
10
11
11
12
jobs :
12
13
release-notification :
13
14
runs-on : ubuntu-latest
15
+ if : ${{ github.event.workflow_run.event == 'release' }}
14
16
permissions :
15
17
contents : read
16
18
actions : read # for 8398a7/action-slack
You can’t perform that action at this time.
0 commit comments