-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Action specific files (#65)
* add github action specific files * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add yaml start * fix tests * add yaml starts * fix test 2 * fix test 3 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix comment, test --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nilashish Chakraborty <[email protected]>
- Loading branch information
1 parent
15ffaaa
commit 8df21e1
Showing
12 changed files
with
77 additions
and
18 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/ansible_creator/resources/new_collection/.github/workflows/release.yml.j2
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: Release {{ namespace }}.{{ collection_name }} | ||
{% raw %} | ||
on: # yamllint disable-line rule:truthy | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release_automation_hub: | ||
uses: ansible/ansible-content-actions/.github/workflows/release_galaxy.yaml@main | ||
with: | ||
environment: release | ||
secrets: | ||
ah_token: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} | ||
{%- endraw %} |
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
1 change: 1 addition & 0 deletions
1
src/ansible_creator/resources/new_collection/changelogs/config.yaml
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
requires_ansible: ">=2.13.0" | ||
requires_ansible: ">=2.14.0" |
10 changes: 10 additions & 0 deletions
10
src/ansible_creator/resources/new_collection/tox-ansible.ini.j2
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ansible] | ||
|
||
skip = | ||
py3.7 | ||
py3.8 | ||
2.9 | ||
2.10 | ||
2.11 | ||
2.12 | ||
2.13 |
14 changes: 14 additions & 0 deletions
14
tests/fixtures/collection/testorg/testcol/.github/workflows/release.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Release testorg.testcol | ||
|
||
on: # yamllint disable-line rule:truthy | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release_automation_hub: | ||
uses: ansible/ansible-content-actions/.github/workflows/release_galaxy.yaml@main | ||
with: | ||
environment: release | ||
secrets: | ||
ah_token: ${{ secrets.ANSIBLE_GALAXY_API_KEY }} |
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
1 change: 1 addition & 0 deletions
1
tests/fixtures/collection/testorg/testcol/changelogs/config.yaml
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
requires_ansible: ">=2.13.0" | ||
requires_ansible: ">=2.14.0" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ansible] | ||
|
||
skip = | ||
py3.7 | ||
py3.8 | ||
2.9 | ||
2.10 | ||
2.11 | ||
2.12 | ||
2.13 |