-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3c0a8e
commit 7d7b744
Showing
15 changed files
with
112 additions
and
355 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,19 +1,35 @@ | ||
--- | ||
# This workflow action will run pre-commit, which will execute ansible and yaml linting | ||
# See .pre-commit-config.yml for what hooks are executed | ||
name: Yaml and Ansible Lint | ||
# See .pre-commit-config.yaml for what hooks are executed | ||
name: pre-commit tests | ||
|
||
on: [push, pull_request] # yamllint disable-line rule:truthy | ||
|
||
on: | ||
pull_request: | ||
push: | ||
schedule: | ||
- cron: "0 6 * * *" | ||
|
||
jobs: | ||
pre-commit: | ||
uses: "redhat-cop/ansible_collections_tooling/.github/workflows/pre-commit.yml@main" | ||
sanity: | ||
uses: "redhat-cop/ansible_collections_tooling/.github/workflows/sanity.yml@main" | ||
with: | ||
collection_namespace: infra | ||
collection_name: ee_utilities | ||
collection_version: 1.0.0 | ||
collection_repo: https://github.com/redhat-cop/ee_utilities/ | ||
all_green: | ||
if: ${{ always() }} | ||
needs: | ||
- pre-commit | ||
- sanity | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Install Collections | ||
run: | | ||
sudo apt install software-properties-common | ||
pip install --upgrade ansible | ||
- uses: pre-commit/[email protected] | ||
- run: >- | ||
python -c "assert set([ | ||
'${{ needs.pre-commit.result }}', | ||
'${{ needs.sanity.result }}', | ||
]) == {'success'}" | ||
... |
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,78 @@ | ||
--- | ||
# This workflow action will run pre-commit, which will execute ansible and yaml linting | ||
# See .pre-commit-config.yaml for what hooks are executed | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
pre-commit: | ||
uses: redhat-cop/ansible_collections_tooling/.github/workflows/pre-commit.yml@main | ||
sanity: | ||
uses: redhat-cop/ansible_collections_tooling/.github/workflows/sanity.yml@main | ||
with: | ||
collection_namespace: infra | ||
collection_name: ee_utilities | ||
collection_version: 1.0.0 | ||
collection_repo: https://github.com/redhat-cop/ee_utilities/ | ||
prechecks: | ||
needs: | ||
- pre-commit | ||
- sanity | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: >- | ||
python -c "assert set([ | ||
'${{ needs.pre-commit.result }}', | ||
'${{ needs.sanity.result }}', | ||
]) == {'success'}" | ||
cop_release: | ||
needs: | ||
- prechecks | ||
uses: redhat-cop/ansible_collections_tooling/.github/workflows/release.yml@main | ||
with: | ||
collection_namespace: redhat_cop | ||
collection_name: ee_utilities | ||
collection_version: ${{ github.ref_name }} | ||
collection_repo: https://github.com/redhat-cop/ee_utilities/ | ||
secrets: | ||
api_key: ${{ secrets.ANSIBLE_GALAXY_APIKEY }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
infra_release: | ||
needs: | ||
- cop_release | ||
uses: redhat-cop/ansible_collections_tooling/.github/workflows/release.yml@main | ||
with: | ||
collection_namespace: infra | ||
collection_name: ee_utilities | ||
collection_version: ${{ github.ref_name }} | ||
collection_repo: https://github.com/redhat-cop/ee_utilities/ | ||
secrets: | ||
api_key: ${{ secrets.GALAXY_INFRA_KEY }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
release_check: | ||
needs: | ||
- cop_release | ||
- infra_release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: >- | ||
python -c "assert set([ | ||
'${{ needs.infra_release.result }}', | ||
'${{ needs.cop_release.result }}', | ||
]) == {'success'}" | ||
changelog: | ||
needs: | ||
- release_check | ||
uses: redhat-cop/ansible_collections_tooling/.github/workflows/create_changelog.yml@main | ||
with: | ||
collection_namespace: infra | ||
collection_name: ee_utilities | ||
collection_version: ${{ github.ref_name }} | ||
collection_repo: https://github.com/redhat-cop/ee_utilities/ | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
... |
Oops, something went wrong.