Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | ||
determine-changed-files: | ||
name: ⚙️ Detemine affected files | ||
Check failure on line 16 in .github/workflows/call_all_jobs.yaml GitHub Actions / .github/workflows/call_all_jobs.yamlInvalid workflow file
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit. | ||
- name: Get all test, doc and src 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 | ||
# all-aef-ddf-workflows: | ||
# name: ⚙️ Run all AEF-DDF workflows | ||
# uses: ./.github/workflows/workflow_dispatcher.yaml | ||
# 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\";"' | ||
# secrets: inherit | ||
all-aef-ddf-workflows: | ||
steps: | ||
- name: R_files | ||
if: steps.changed-files-yaml.outputs.R_any_changed == 'true' | ||
run: | | ||
echo "One or more test file(s) has changed." | ||
echo "List all the files that have changed: ${{ steps.changed-files-yaml.outputs.R_all_changed_files }}" | ||
- name: test_files | ||
if: steps.changed-files-yaml.outputs.test_any_changed == 'true' | ||
run: | | ||
echo "One or more test file(s) has changed." | ||
echo "List all the files that have changed: ${{ steps.changed-files-yaml.outputs.test_all_changed_files }}" | ||
- name: man_files | ||
if: steps.changed-files-yaml.outputs.man_any_changed == 'true' | ||
run: | | ||
echo "One or more test file(s) has changed." | ||
echo "List all the files that have changed: ${{ steps.changed-files-yaml.outputs.man_all_changed_files }}" | ||
- name: vignette_files | ||
if: steps.changed-files-yaml.outputs.vignette_any_changed == 'true' | ||
run: | | ||
echo "One or more test file(s) has changed." | ||
echo "List all the files that have changed: ${{ steps.changed-files-yaml.outputs.vignette_all_changed_files }}" | ||
- name: readme_files | ||
if: steps.changed-files-yaml.outputs.readme_any_changed == 'true' | ||
run: | | ||
echo "One or more test file(s) has changed." | ||
echo "List all the files that have changed: ${{ steps.changed-files-yaml.outputs.readme_all_changed_files }}" |