File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 8
8
- " scripts/order.txt" # Order file
9
9
- " media/**" # Anything in 'media' folder
10
10
workflow_dispatch : # Allows manual triggering in GitHub Actions UI
11
+ inputs :
12
+ update_readme :
13
+ type : boolean
14
+ required : false
15
+ default : false
11
16
schedule :
12
17
- cron : " 0 0 * * 0" # Weekly on Sundays at midnight UTC
13
18
19
+ workflow_run :
20
+ # This workflow will run after the "Validate JSON Entries" workflow is completed
21
+ workflows : ["Validate JSON Entries"]
22
+ types : [completed]
23
+ branches :
24
+ - main
25
+
14
26
jobs :
15
27
update-readme :
28
+ # run only if the previous workflow run was successful or cron job
29
+ # This is to prevent the README update from running if the JSON validation fails
30
+ if : >
31
+ (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') ||
32
+ (github.event_name == 'schedule') ||
33
+ (github.event_name == 'workflow_dispatch' && github.event.inputs.update_readme == 'true')
34
+
16
35
runs-on : ubuntu-latest
17
36
# Grant write permissions to the GITHUB_TOKEN
18
37
permissions :
You can’t perform that action at this time.
0 commit comments