Skip to content

Commit df7cecc

Browse files
committed
feat: workflows to trigger in sequence
1 parent d2d7e09 commit df7cecc

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/nextjs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,20 @@ on:
88
# Runs on pushes targeting the default branch
99
push:
1010
branches: ["main"]
11+
paths-ignore:
12+
# If there are changes to these files, wait for the update-publications workflow to finish
13+
- "scripts/crawl-publications.ts"
14+
- ".github/workflows/update-publications.yml"
1115

1216
# Allows you to run this workflow manually from the Actions tab
1317
workflow_dispatch:
1418

19+
# Run after update-publications workflow
20+
workflow_run:
21+
workflows: ["Update Publications"]
22+
types:
23+
- completed
24+
1525
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1626
permissions:
1727
contents: read

.github/workflows/update-publications.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
schedule:
77
- cron: "0 0 * * 0"
88

9+
push:
10+
paths:
11+
- ".github/workflows/update-publications.yml"
12+
- "scripts/crawl-publications.ts"
13+
914
# Allow manual trigger
1015
workflow_dispatch:
1116

0 commit comments

Comments
 (0)