summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/iosxr/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_collections/cisco/iosxr/.github/workflows')
-rw-r--r--ansible_collections/cisco/iosxr/.github/workflows/check_label.yml (renamed from ansible_collections/cisco/iosxr/.github/workflows/ack.yml)10
-rw-r--r--ansible_collections/cisco/iosxr/.github/workflows/codecoverage.yml3
-rw-r--r--ansible_collections/cisco/iosxr/.github/workflows/draft_release.yml18
-rw-r--r--ansible_collections/cisco/iosxr/.github/workflows/push.yml27
-rw-r--r--ansible_collections/cisco/iosxr/.github/workflows/release.yml4
-rw-r--r--ansible_collections/cisco/iosxr/.github/workflows/tests.yml19
6 files changed, 36 insertions, 45 deletions
diff --git a/ansible_collections/cisco/iosxr/.github/workflows/ack.yml b/ansible_collections/cisco/iosxr/.github/workflows/check_label.yml
index fda595dc5..b120bfa32 100644
--- a/ansible_collections/cisco/iosxr/.github/workflows/ack.yml
+++ b/ansible_collections/cisco/iosxr/.github/workflows/check_label.yml
@@ -1,15 +1,11 @@
---
-# See https://github.com/ansible-community/devtools/blob/main/.github/workflows/ack.yml
-name: ack
-
+name: "Check label"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
-
on: # yamllint disable-line rule:truthy
pull_request_target:
types: [opened, labeled, unlabeled, synchronize]
-
jobs:
- ack:
- uses: ansible/devtools/.github/workflows/ack.yml@main
+ check_label:
+ uses: ansible/ansible-content-actions/.github/workflows/check_label.yaml@main
diff --git a/ansible_collections/cisco/iosxr/.github/workflows/codecoverage.yml b/ansible_collections/cisco/iosxr/.github/workflows/codecoverage.yml
index b425edcc2..3e0f17919 100644
--- a/ansible_collections/cisco/iosxr/.github/workflows/codecoverage.yml
+++ b/ansible_collections/cisco/iosxr/.github/workflows/codecoverage.yml
@@ -1,8 +1,9 @@
---
-name: Code Coverage
+name: "Code coverage"
on: # yamllint disable-line rule:truthy
push:
+ branches: [main]
pull_request:
branches: [ main ]
diff --git a/ansible_collections/cisco/iosxr/.github/workflows/draft_release.yml b/ansible_collections/cisco/iosxr/.github/workflows/draft_release.yml
new file mode 100644
index 000000000..88b45f2b0
--- /dev/null
+++ b/ansible_collections/cisco/iosxr/.github/workflows/draft_release.yml
@@ -0,0 +1,18 @@
+---
+name: "Draft release"
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+on: # yamllint disable-line rule:truthy
+ workflow_dispatch:
+env:
+ NAMESPACE: ${{ github.repository_owner }}
+ COLLECTION_NAME: iosxr
+ ANSIBLE_COLLECTIONS_PATHS: ./
+jobs:
+ update_release_draft:
+ uses: ansible/ansible-content-actions/.github/workflows/draft_release.yaml@main
+ with:
+ repo: ${{ github.event.pull_request.head.repo.full_name }}
+ secrets:
+ BOT_PAT: ${{ secrets.BOT_PAT }}
diff --git a/ansible_collections/cisco/iosxr/.github/workflows/push.yml b/ansible_collections/cisco/iosxr/.github/workflows/push.yml
deleted file mode 100644
index 06d11b8a0..000000000
--- a/ansible_collections/cisco/iosxr/.github/workflows/push.yml
+++ /dev/null
@@ -1,27 +0,0 @@
----
-# push workflow is shared and expected to perform actions after a merge happens
-# on a maintenance branch (default or release). For example updating the
-# draft release-notes.
-# based on great work from
-# https://github.com/T-Systems-MMS/ansible-collection-icinga-director
-name: push
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
- cancel-in-progress: true
-
-on: # yamllint disable-line rule:truthy
- workflow_dispatch:
-
-env:
- NAMESPACE: cisco
- COLLECTION_NAME: iosxr
- ANSIBLE_COLLECTIONS_PATHS: ./
-
-jobs:
- update_release_draft:
- uses: ansible/devtools/.github/workflows/push_network.yml@main
- with:
- repo: ansible-collections/cisco.iosxr
- secrets:
- BOT_PAT: ${{ secrets.BOT_PAT }}
diff --git a/ansible_collections/cisco/iosxr/.github/workflows/release.yml b/ansible_collections/cisco/iosxr/.github/workflows/release.yml
index eb04259d1..6dbb1aa39 100644
--- a/ansible_collections/cisco/iosxr/.github/workflows/release.yml
+++ b/ansible_collections/cisco/iosxr/.github/workflows/release.yml
@@ -1,12 +1,12 @@
---
-name: release
+name: "Release collection"
on: # yamllint disable-line rule:truthy
release:
types: [published]
jobs:
release:
- uses: ansible/devtools/.github/workflows/release_collection.yml@main
+ uses: ansible/ansible-content-actions/.github/workflows/release.yaml@main
with:
environment: release
secrets:
diff --git a/ansible_collections/cisco/iosxr/.github/workflows/tests.yml b/ansible_collections/cisco/iosxr/.github/workflows/tests.yml
index 21f8ea565..64409a9a4 100644
--- a/ansible_collections/cisco/iosxr/.github/workflows/tests.yml
+++ b/ansible_collections/cisco/iosxr/.github/workflows/tests.yml
@@ -1,5 +1,5 @@
---
-name: CI
+name: "CI"
concurrency:
group: ${{ github.head_ref || github.run_id }}
@@ -13,15 +13,17 @@ on: # yamllint disable-line rule:truthy
- cron: '0 0 * * *'
jobs:
- ansible-lint:
- uses: ansible-network/github_actions/.github/workflows/ansible-lint.yml@main
changelog:
- uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
+ uses: ansible/ansible-content-actions/.github/workflows/changelog.yaml@main
if: github.event_name == 'pull_request'
+ build-import:
+ uses: ansible/ansible-content-actions/.github/workflows/build_import.yaml@main
+ ansible-lint:
+ uses: ansible/ansible-content-actions/.github/workflows/ansible_lint.yaml@main
sanity:
- uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
+ uses: ansible/ansible-content-actions/.github/workflows/sanity.yaml@main
unit-galaxy:
- uses: ansible-network/github_actions/.github/workflows/unit_galaxy.yml@main
+ uses: ansible/ansible-content-actions/.github/workflows/unit.yaml@main
unit-source:
uses: ansible-network/github_actions/.github/workflows/unit_source.yml@main
with:
@@ -31,19 +33,20 @@ jobs:
all_green:
if: ${{ always() }}
needs:
- - ansible-lint
- changelog
+ - build-import
- sanity
- unit-galaxy
+ - ansible-lint
- unit-source
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert 'failure' not in
set([
- '${{ needs.ansible-lint.result }}',
'${{ needs.changelog.result }}',
'${{ needs.sanity.result }}',
'${{ needs.unit-galaxy.result }}',
+ '${{ needs.ansible-lint.result }}',
'${{ needs.unit-source.result }}'
])"