summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/ios/.github
diff options
context:
space:
mode:
Diffstat (limited to 'ansible_collections/cisco/ios/.github')
-rw-r--r--ansible_collections/cisco/ios/.github/CODEOWNERS1
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/ack.yml2
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/codecoverage.yml2
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/lint.yml13
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/push.yml23
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/release.yml2
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/tests.yml13
-rw-r--r--ansible_collections/cisco/ios/.github/workflows/token_refresh.yml14
8 files changed, 33 insertions, 37 deletions
diff --git a/ansible_collections/cisco/ios/.github/CODEOWNERS b/ansible_collections/cisco/ios/.github/CODEOWNERS
index 8743cc6c9..e69de29bb 100644
--- a/ansible_collections/cisco/ios/.github/CODEOWNERS
+++ b/ansible_collections/cisco/ios/.github/CODEOWNERS
@@ -1 +0,0 @@
-* @KB-perByte @cidrblock
diff --git a/ansible_collections/cisco/ios/.github/workflows/ack.yml b/ansible_collections/cisco/ios/.github/workflows/ack.yml
index 0f8882731..fda595dc5 100644
--- a/ansible_collections/cisco/ios/.github/workflows/ack.yml
+++ b/ansible_collections/cisco/ios/.github/workflows/ack.yml
@@ -6,7 +6,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
-on:
+on: # yamllint disable-line rule:truthy
pull_request_target:
types: [opened, labeled, unlabeled, synchronize]
diff --git a/ansible_collections/cisco/ios/.github/workflows/codecoverage.yml b/ansible_collections/cisco/ios/.github/workflows/codecoverage.yml
index cd0f1ad4f..c2a7ad60d 100644
--- a/ansible_collections/cisco/ios/.github/workflows/codecoverage.yml
+++ b/ansible_collections/cisco/ios/.github/workflows/codecoverage.yml
@@ -1,7 +1,7 @@
---
name: code_coverage
-on:
+on: # yamllint disable-line rule:truthy
push:
pull_request:
branches: [ main ]
diff --git a/ansible_collections/cisco/ios/.github/workflows/lint.yml b/ansible_collections/cisco/ios/.github/workflows/lint.yml
new file mode 100644
index 000000000..fbac38cbf
--- /dev/null
+++ b/ansible_collections/cisco/ios/.github/workflows/lint.yml
@@ -0,0 +1,13 @@
+---
+name: ansible-lint
+on: # yamllint disable-line rule:truthy
+ pull_request:
+ branches: ["main"]
+jobs:
+ build:
+ name: Ansible Lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Run ansible-lint
+ uses: ansible/ansible-lint@main
diff --git a/ansible_collections/cisco/ios/.github/workflows/push.yml b/ansible_collections/cisco/ios/.github/workflows/push.yml
index d803db021..2e144f623 100644
--- a/ansible_collections/cisco/ios/.github/workflows/push.yml
+++ b/ansible_collections/cisco/ios/.github/workflows/push.yml
@@ -10,17 +10,18 @@ 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
+on: # yamllint disable-line rule:truthy
+ # # auto generate changelog and add PR by ansibuddy
+ # 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:
diff --git a/ansible_collections/cisco/ios/.github/workflows/release.yml b/ansible_collections/cisco/ios/.github/workflows/release.yml
index c9dd3f870..eb04259d1 100644
--- a/ansible_collections/cisco/ios/.github/workflows/release.yml
+++ b/ansible_collections/cisco/ios/.github/workflows/release.yml
@@ -1,6 +1,6 @@
---
name: release
-on:
+on: # yamllint disable-line rule:truthy
release:
types: [published]
diff --git a/ansible_collections/cisco/ios/.github/workflows/tests.yml b/ansible_collections/cisco/ios/.github/workflows/tests.yml
index 18ca370cd..2c1d85055 100644
--- a/ansible_collections/cisco/ios/.github/workflows/tests.yml
+++ b/ansible_collections/cisco/ios/.github/workflows/tests.yml
@@ -1,5 +1,5 @@
---
-name: test_collection
+name: CI
concurrency:
group: ${{ github.head_ref || github.run_id }}
@@ -14,8 +14,6 @@ on: # yamllint disable-line rule:truthy
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'
@@ -30,9 +28,8 @@ jobs:
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') }}
+ if: ${{ always() }}
needs:
- - ansible-lint
- changelog
- sanity
- unit-galaxy
@@ -40,10 +37,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: >-
- python -c "assert set([
- '${{ needs.ansible-lint.result }}',
+ python -c "assert 'failure' not in
+ set([
'${{ 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
deleted file mode 100644
index d1783963a..000000000
--- a/ansible_collections/cisco/ios/.github/workflows/token_refresh.yml
+++ /dev/null
@@ -1,14 +0,0 @@
----
-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 }}