Skip to content

Commit 2a5f1b6

Browse files
committed
Action: Dummy
1 parent 5d5167b commit 2a5f1b6

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/previews.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: exampleSite preview
22

33
on:
4+
release:
5+
types:
6+
- published
47
pull_request:
58
branches:
69
- "*"
@@ -17,6 +20,8 @@ jobs:
1720
environment="preview"
1821
theme_version=""
1922
23+
echo ${{ github.head_ref || github.ref_name }}
24+
2025
curl -L \
2126
-X POST \
2227
-H "Accept: application/vnd.github+json" \

.github/workflows/theme-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
name: Slack notification for new theme release
22

33
on:
4-
release:
5-
types:
6-
- published
4+
workflow_run:
5+
workflows:
6+
- "exampleSite preview"
7+
types: [completed]
78

89
permissions:
910
contents: read
1011

1112
jobs:
1213
release-notification:
1314
runs-on: ubuntu-latest
15+
if: ${{ github.event.workflow_run.event == 'release' }}
1416
permissions:
1517
contents: read
1618
actions: read # for 8398a7/action-slack

0 commit comments

Comments
 (0)