-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 2.09 KB
/
call_all_jobs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branch: [main, master]
pull_request:
branch: [main, master]
release:
types: [published]
workflow_dispatch:
jobs:
# To give granular control of when workflows should execute, we determine which "categories" of files has changed
# Then we pass this informatio nto the dispatcher
run-all-AEF-DFF-workflows:
name: ⚙️ Run all AEF-DDF workflows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get all R, test, man, vignette and readme files that have changed
id: changed-files-yaml
uses: tj-actions/changed-files@v40
with:
files_yaml: |
R:
- R/**
test:
- tests/**
man:
- man/**
vignette:
- vignettes/**
readme:
- README.md
- README.Rmd
# We call the reuseable workflow that triggers all AEF-DDF workflows
- uses: ./.github/workflows/workflow_dispatcher.yaml
secrets: inherit
with:
# We pass information about the triggering event
event_name: ${{ github.event_name }}
run_id: ${{ github.run_id }}
# We tell the workflow which files have been changed in this update
R_files_changed: ${{ steps.changed-files-yaml.outputs.R_any_changed }}
test_files_changed: ${{ steps.changed-files-yaml.outputs.test_any_changed }}
man_files_changed: ${{ steps.changed-files-yaml.outputs.man_any_changed }}
vignette_files_changed: ${{ steps.changed-files-yaml.outputs.vignette_any_changed }}
readme_files_changed: ${{ steps.changed-files-yaml.outputs.readme_any_changed }}
# test-coverage creates data bases for the tests. Here you can specify the schemas you need for the workflow
schema_creation: '"CREATE SCHEMA test; CREATE SCHEMA \"test.one\";"'