summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/ios/.github/workflows
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:04:41 +0000
commit975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch)
tree89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/cisco/ios/.github/workflows
parentInitial commit. (diff)
downloadansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz
ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/cisco/ios/.github/workflows')
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/ack.yml15
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/codecoverage.yml15
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/push.yml37
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/release.yml14
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/tests.yml49
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/token_refresh.yml14
6 files changed, 144 insertions, 0 deletions
diff --git a/ansible_collections/cisco/ios/.github/workflows/ack.yml b/ansible_collections/cisco/ios/.github/workflows/ack.yml
new file mode 100644
index 000000000..0f8882731
--- /dev/null
+++ b/ansible_collections/cisco/ios/.github/workflows/ack.yml
@@ -0,0 +1,15 @@
+---
+# See https://github.com/ansible-community/devtools/blob/main/.github/workflows/ack.yml
+name: ack
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
+
+on:
+ pull_request_target:
+ types: [opened, labeled, unlabeled, synchronize]
+
+jobs:
+ ack:
+ uses: ansible/devtools/.github/workflows/ack.yml@main
diff --git a/ansible_collections/cisco/ios/.github/workflows/codecoverage.yml b/ansible_collections/cisco/ios/.github/workflows/codecoverage.yml
new file mode 100644
index 000000000..cd0f1ad4f
--- /dev/null
+++ b/ansible_collections/cisco/ios/.github/workflows/codecoverage.yml
@@ -0,0 +1,15 @@
+---
+name: code_coverage
+
+on:
+ push:
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ codecoverage:
+ uses: ansible-network/github_actions/.github/workflows/coverage_network_devices.yml@main
+ with:
+ collection_pre_install: >-
+ git+https://github.com/ansible-collections/ansible.utils.git
+ git+https://github.com/ansible-collections/ansible.netcommon.git
diff --git a/ansible_collections/cisco/ios/.github/workflows/push.yml b/ansible_collections/cisco/ios/.github/workflows/push.yml
new file mode 100644
index 000000000..d803db021
--- /dev/null
+++ b/ansible_collections/cisco/ios/.github/workflows/push.yml
@@ -0,0 +1,37 @@
+---
+# 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:
+ push:
+ # branches to consider in the event; optional, defaults to all
+ branches:
+ - main
+ - 'releases/**'
+ - 'stable/**'
+ # Prevent a 2nd run after the changelog is updated
+ paths-ignore:
+ - CHANGELOG.rst
+ - changelogs/changelog.yaml
+ workflow_dispatch:
+
+env:
+ NAMESPACE: cisco
+ COLLECTION_NAME: ios
+ ANSIBLE_COLLECTIONS_PATHS: ./
+
+jobs:
+ update_release_draft:
+ uses: ansible/devtools/.github/workflows/push_network.yml@main
+ with:
+ repo: ansible-collections/cisco.ios
+ secrets:
+ BOT_PAT: ${{ secrets.BOT_PAT }}
diff --git a/ansible_collections/cisco/ios/.github/workflows/release.yml b/ansible_collections/cisco/ios/.github/workflows/release.yml
new file mode 100644
index 000000000..c9dd3f870
--- /dev/null
+++ b/ansible_collections/cisco/ios/.github/workflows/release.yml
@@ -0,0 +1,14 @@
+---
+name: release
+on:
+ release:
+ types: [published]
+
+jobs:
+ release:
+ uses: ansible/devtools/.github/workflows/release_collection.yml@main
+ with:
+ environment: release
+ secrets:
+ ah_token: ${{ secrets.AH_TOKEN }}
+ ansible_galaxy_api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
diff --git a/ansible_collections/cisco/ios/.github/workflows/tests.yml b/ansible_collections/cisco/ios/.github/workflows/tests.yml
new file mode 100644
index 000000000..18ca370cd
--- /dev/null
+++ b/ansible_collections/cisco/ios/.github/workflows/tests.yml
@@ -0,0 +1,49 @@
+---
+name: test_collection
+
+concurrency:
+ group: ${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
+on: # yamllint disable-line rule:truthy
+ pull_request:
+ branches: [main]
+ workflow_dispatch:
+ schedule:
+ - 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
+ if: github.event_name != 'schedule'
+ sanity:
+ uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
+ unit-galaxy:
+ uses: ansible-network/github_actions/.github/workflows/unit_galaxy.yml@main
+ unit-source:
+ uses: ansible-network/github_actions/.github/workflows/unit_source.yml@main
+ with:
+ collection_pre_install: >-
+ git+https://github.com/ansible-collections/ansible.utils.git
+ git+https://github.com/ansible-collections/ansible.netcommon.git
+ all_green:
+ if: ${{ always() && (github.event_name != 'schedule') }}
+ needs:
+ - ansible-lint
+ - changelog
+ - sanity
+ - unit-galaxy
+ - unit-source
+ runs-on: ubuntu-latest
+ steps:
+ - run: >-
+ python -c "assert set([
+ '${{ needs.ansible-lint.result }}',
+ '${{ needs.changelog.result }}',
+ '${{ needs.sanity.result }}',
+ '${{ needs.unit-galaxy.result }}',
+ '${{ needs.unit-source.result }}'
+ ]) == {'success'}"
diff --git a/ansible_collections/cisco/ios/.github/workflows/token_refresh.yml b/ansible_collections/cisco/ios/.github/workflows/token_refresh.yml
new file mode 100644
index 000000000..d1783963a
--- /dev/null
+++ b/ansible_collections/cisco/ios/.github/workflows/token_refresh.yml
@@ -0,0 +1,14 @@
+---
+name: refresh_automation_hub_token
+on:
+ schedule:
+ - cron: '0 0 * * *'
+ workflow_dispatch:
+
+jobs:
+ refresh:
+ uses: ansible/devtools/.github/workflows/ah_token_refresh.yml@main
+ with:
+ environment: release
+ secrets:
+ ah_token: ${{ secrets.AH_TOKEN }}