File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change 6
6
workflow_dispatch : # manual trigger
7
7
8
8
jobs :
9
+ check-template :
10
+ runs-on : ubuntu-latest
11
+ outputs :
12
+ has_template : ${{ steps.check.outputs.has_template }}
13
+ steps :
14
+ - name : Checkout repo
15
+ uses : actions/checkout@v4
16
+
17
+ - name : Check for README.template.md
18
+ id : check
19
+ shell : bash
20
+ run : |
21
+ if [[ -f "README.template.md" ]]; then
22
+ echo "has_template=true" >> "$GITHUB_OUTPUT"
23
+ else
24
+ echo "has_template=false" >> "$GITHUB_OUTPUT"
25
+ echo "README.template.md not found. Skipping README update." >&2
26
+ fi
27
+
9
28
call-shared :
10
- if : ${{ hashFiles('README.template.md') != '' }} # only run if the file exists
29
+ needs : check-template
30
+ if : ${{ needs.check-template.outputs.has_template == 'true' }}
11
31
uses : control-toolbox/CTActions/.github/workflows/update-readme.yml@main
12
32
with :
13
33
template_file : README.template.md
14
34
output_file : README.md
15
- package_name : CTDirect # package for INSTALL.md
16
- repo_name : CTDirect.jl # repository for CONTRIBUTING.md links
35
+ package_name : CTDirect # package for INSTALL.md
36
+ repo_name : CTDirect.jl # repository for CONTRIBUTING.md links
17
37
citation_badge : " [](https://zenodo.org/doi/10.5281/zenodo.16753152)" # example, can be empty
18
38
assignee : " ocots"
19
39
secrets : inherit
You can’t perform that action at this time.
0 commit comments