Skip to content

Commit 758b28a

Browse files
committed
create .github/workflows only when a github action is enabled
1 parent 55b80ed commit 758b28a

17 files changed

+24
-4
lines changed

copier.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,25 @@
1515
!include copier/questions/package_details.yml
1616

1717
---
18-
# code quality
18+
# code quality features
1919
!include copier/questions/features_code_quality.yml
2020

2121
---
22-
# publish and release
22+
# publish and release features
2323
!include copier/questions/features_publish_release.yml
2424

2525
---
26-
# publish and release
26+
# publish and release features
2727
!include copier/questions/features_documentation.yml
2828

2929
---
30-
# community
30+
# community features
3131
!include copier/questions/features_community.yml
3232

33+
---
34+
# global flags
35+
!include copier/global_flags.yml
36+
3337
---
3438
# User messages
3539
!include copier/messages.yml

copier/global_flags.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
# Computed values that depend on multiple values
3+
4+
HasWorkflows:
5+
type: bool
6+
default: "{{
7+
AddGitHubActionBuild
8+
or AddGitHubActionDocumentation
9+
or AddLinkCheck
10+
or AddCFFConvert
11+
or AddCitation
12+
or AddOnlineDocumentation
13+
or AddSonarCloud
14+
or AddZenodo
15+
or AddLinting }}"
16+
when: false

template/.github/workflows/{% if AddCFFConvert %}cffconvert.yml{% endif %} renamed to template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddCFFConvert %}cffconvert.yml{% endif %}

File renamed without changes.

template/.github/workflows/{% if AddCitation %}next_steps_citation.yml{% endif %} renamed to template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddCitation %}next_steps_citation.yml{% endif %}

File renamed without changes.

template/.github/workflows/{% if AddCitation %}next_steps_citation_issue.md{% endif %}.jinja renamed to template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddCitation %}next_steps_citation_issue.md{% endif %}.jinja

File renamed without changes.

template/.github/workflows/{% if AddGitHubActionBuild %}build.yml{% endif %}.jinja renamed to template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddGitHubActionBuild %}build.yml{% endif %}.jinja

File renamed without changes.

template/.github/workflows/{% if AddGitHubActionDocumentation %}documentation.yml{% endif %} renamed to template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddGitHubActionDocumentation %}documentation.yml{% endif %}

File renamed without changes.

template/.github/workflows/{% if AddLinkCheck %}link-check.yml{% endif %} renamed to template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddLinkCheck %}link-check.yml{% endif %}

File renamed without changes.

template/.github/workflows/{% if AddLinting %}next_steps_linting.yml{% endif %} renamed to template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddLinting %}next_steps_linting.yml{% endif %}

File renamed without changes.

template/.github/workflows/{% if AddLinting %}next_steps_linting_issue.md{% endif %}.jinja renamed to template/{% if HasWorkflows %}.github{% endif %}/workflows/{% if AddLinting %}next_steps_linting_issue.md{% endif %}.jinja

File renamed without changes.

0 commit comments

Comments
 (0)