summaryrefslogtreecommitdiffstats
path: root/ansible_collections/amazon/aws/.github/workflows
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:35 +0000
commit7fec0b69a082aaeec72fee0612766aa42f6b1b4d (patch)
treeefb569b86ca4da888717f5433e757145fa322e08 /ansible_collections/amazon/aws/.github/workflows
parentReleasing progress-linux version 7.7.0+dfsg-3~progress7.99u1. (diff)
downloadansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.tar.xz
ansible-7fec0b69a082aaeec72fee0612766aa42f6b1b4d.zip
Merging upstream version 9.4.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/amazon/aws/.github/workflows')
-rw-r--r--ansible_collections/amazon/aws/.github/workflows/all_green_check.yml40
-rw-r--r--ansible_collections/amazon/aws/.github/workflows/ansible-bot.yml18
-rw-r--r--ansible_collections/amazon/aws/.github/workflows/changelog.yml22
-rw-r--r--ansible_collections/amazon/aws/.github/workflows/docs-pr.yml4
-rw-r--r--ansible_collections/amazon/aws/.github/workflows/docs-push.yml5
-rw-r--r--ansible_collections/amazon/aws/.github/workflows/linters.yml11
-rw-r--r--ansible_collections/amazon/aws/.github/workflows/release-manual.yml36
-rw-r--r--ansible_collections/amazon/aws/.github/workflows/release-tag.yml33
-rw-r--r--ansible_collections/amazon/aws/.github/workflows/sanity.yml8
-rw-r--r--ansible_collections/amazon/aws/.github/workflows/units.yml8
-rw-r--r--ansible_collections/amazon/aws/.github/workflows/update-variables.yml16
11 files changed, 197 insertions, 4 deletions
diff --git a/ansible_collections/amazon/aws/.github/workflows/all_green_check.yml b/ansible_collections/amazon/aws/.github/workflows/all_green_check.yml
new file mode 100644
index 000000000..9f2a8347d
--- /dev/null
+++ b/ansible_collections/amazon/aws/.github/workflows/all_green_check.yml
@@ -0,0 +1,40 @@
+---
+name: all_green
+
+concurrency:
+ group: ${{ github.head_ref }}
+ cancel-in-progress: true
+
+on: # yamllint disable-line rule:truthy
+ pull_request:
+ types:
+ - opened
+ - reopened
+ - synchronize
+ branches:
+ - main
+ - stable-*
+ tags:
+ - "*"
+
+jobs:
+ linters:
+ uses: ./.github/workflows/linters.yml # use the callable linters job to run tests
+ sanity:
+ uses: ./.github/workflows/sanity.yml # use the callable sanity job to run tests
+ units:
+ uses: ./.github/workflows/units.yml # use the callable units job to run tests
+ all_green:
+ if: ${{ always() }}
+ needs:
+ - linters
+ - sanity
+ - units
+ runs-on: ubuntu-latest
+ steps:
+ - run: >-
+ python -c "assert set([
+ '${{ needs.linters.result }}',
+ '${{ needs.sanity.result }}',
+ '${{ needs.units.result }}'
+ ]) == {'success'}"
diff --git a/ansible_collections/amazon/aws/.github/workflows/ansible-bot.yml b/ansible_collections/amazon/aws/.github/workflows/ansible-bot.yml
new file mode 100644
index 000000000..2015ef480
--- /dev/null
+++ b/ansible_collections/amazon/aws/.github/workflows/ansible-bot.yml
@@ -0,0 +1,18 @@
+---
+name: ansible bot
+on:
+ issues:
+ types:
+ - opened
+ - reopened
+
+jobs:
+ add_label:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ issues: write
+ steps:
+ - uses: actions-ecosystem/action-add-labels@v1
+ with:
+ labels: needs_triage
diff --git a/ansible_collections/amazon/aws/.github/workflows/changelog.yml b/ansible_collections/amazon/aws/.github/workflows/changelog.yml
new file mode 100644
index 000000000..74557125b
--- /dev/null
+++ b/ansible_collections/amazon/aws/.github/workflows/changelog.yml
@@ -0,0 +1,22 @@
+---
+name: changelog
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+on:
+ pull_request:
+ types:
+ - opened
+ - reopened
+ - labeled
+ - unlabeled
+ - synchronize
+ branches:
+ - main
+ - stable-*
+ tags:
+ - "*"
+jobs:
+ changelog:
+ uses: ansible-network/github_actions/.github/workflows/changelog.yml@main
diff --git a/ansible_collections/amazon/aws/.github/workflows/docs-pr.yml b/ansible_collections/amazon/aws/.github/workflows/docs-pr.yml
index 10cb50de7..8cc39d8f5 100644
--- a/ansible_collections/amazon/aws/.github/workflows/docs-pr.yml
+++ b/ansible_collections/amazon/aws/.github/workflows/docs-pr.yml
@@ -1,3 +1,4 @@
+---
name: Collection Docs
concurrency:
group: docs-${{ github.head_ref }}
@@ -5,7 +6,6 @@ concurrency:
on:
pull_request_target:
types: [opened, synchronize, reopened, closed]
-
env:
GHP_BASE_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}
@@ -45,7 +45,7 @@ jobs:
- name: PR comment
uses: ansible-community/github-docs-build/actions/ansible-docs-build-comment@main
with:
- body-includes: '## Docs Build'
+ body-includes: "## Docs Build"
reactions: heart
action: ${{ needs.build-docs.outputs.changed != 'true' && 'remove' || '' }}
on-closed-action: remove
diff --git a/ansible_collections/amazon/aws/.github/workflows/docs-push.yml b/ansible_collections/amazon/aws/.github/workflows/docs-push.yml
index 0acd93200..2c7e9f4c7 100644
--- a/ansible_collections/amazon/aws/.github/workflows/docs-push.yml
+++ b/ansible_collections/amazon/aws/.github/workflows/docs-push.yml
@@ -1,3 +1,4 @@
+---
name: Collection Docs
concurrency:
group: docs-push-${{ github.sha }}
@@ -8,9 +9,9 @@ on:
- main
- stable-*
tags:
- - '*'
+ - "*"
schedule:
- - cron: '0 12 * * *'
+ - cron: "0 12 * * *"
jobs:
build-docs:
diff --git a/ansible_collections/amazon/aws/.github/workflows/linters.yml b/ansible_collections/amazon/aws/.github/workflows/linters.yml
new file mode 100644
index 000000000..0bbf1025d
--- /dev/null
+++ b/ansible_collections/amazon/aws/.github/workflows/linters.yml
@@ -0,0 +1,11 @@
+---
+name: changelog and linters
+
+on: [workflow_call] # allow this workflow to be called from other workflows
+
+jobs:
+ linters:
+ uses: ansible-network/github_actions/.github/workflows/tox.yml@main
+ with:
+ envname: ""
+ labelname: lint
diff --git a/ansible_collections/amazon/aws/.github/workflows/release-manual.yml b/ansible_collections/amazon/aws/.github/workflows/release-manual.yml
new file mode 100644
index 000000000..e1f0474d5
--- /dev/null
+++ b/ansible_collections/amazon/aws/.github/workflows/release-manual.yml
@@ -0,0 +1,36 @@
+---
+name: Generate GitHub Release (manual trigger)
+concurrency:
+ group: release-${{ github.head_ref }}
+ cancel-in-progress: true
+on:
+ workflow_dispatch:
+ inputs:
+ release:
+ required: true
+ description: Release to generate
+ type: string
+
+jobs:
+ generate-release-log:
+ permissions:
+ contents: read
+ runs-on: ubuntu-latest
+ steps:
+ - name: Generate Release Log
+ uses: ansible-collections/amazon.aws/.github/actions/ansible_release_log@main
+ with:
+ release: ${{ inputs.release }}
+
+ perform-release:
+ permissions:
+ contents: write
+ runs-on: ubuntu-latest
+ needs:
+ - generate-release-log
+ steps:
+ - name: Generate Release
+ uses: ansible-collections/amazon.aws/.github/actions/ansible_release_tag@main
+ with:
+ release: ${{ inputs.release }}
+ collection-name: amazon.aws
diff --git a/ansible_collections/amazon/aws/.github/workflows/release-tag.yml b/ansible_collections/amazon/aws/.github/workflows/release-tag.yml
new file mode 100644
index 000000000..135bedb88
--- /dev/null
+++ b/ansible_collections/amazon/aws/.github/workflows/release-tag.yml
@@ -0,0 +1,33 @@
+---
+name: Generate GitHub Release
+concurrency:
+ group: release-${{ github.head_ref }}
+ cancel-in-progress: true
+on:
+ push:
+ tags:
+ - "*"
+
+jobs:
+ generate-release-log:
+ permissions:
+ contents: read
+ runs-on: ubuntu-latest
+ steps:
+ - name: Generate Release Log
+ uses: ansible-collections/amazon.aws/.github/actions/ansible_release_log@main
+ with:
+ release: ${{ github.ref_name }}
+
+ perform-release:
+ permissions:
+ contents: write
+ runs-on: ubuntu-latest
+ needs:
+ - generate-release-log
+ steps:
+ - name: Generate Release
+ uses: ansible-collections/amazon.aws/.github/actions/ansible_release_tag@main
+ with:
+ release: ${{ github.ref_name }}
+ collection-name: amazon.aws
diff --git a/ansible_collections/amazon/aws/.github/workflows/sanity.yml b/ansible_collections/amazon/aws/.github/workflows/sanity.yml
new file mode 100644
index 000000000..d3d4e3120
--- /dev/null
+++ b/ansible_collections/amazon/aws/.github/workflows/sanity.yml
@@ -0,0 +1,8 @@
+---
+name: sanity tests
+
+on: [workflow_call] # allow this workflow to be called from other workflows
+
+jobs:
+ sanity:
+ uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
diff --git a/ansible_collections/amazon/aws/.github/workflows/units.yml b/ansible_collections/amazon/aws/.github/workflows/units.yml
new file mode 100644
index 000000000..4d8de6bb1
--- /dev/null
+++ b/ansible_collections/amazon/aws/.github/workflows/units.yml
@@ -0,0 +1,8 @@
+---
+name: unit tests
+
+on: [workflow_call] # allow this workflow to be called from other workflows
+
+jobs:
+ unit-source:
+ uses: ansible-network/github_actions/.github/workflows/unit_source.yml@main
diff --git a/ansible_collections/amazon/aws/.github/workflows/update-variables.yml b/ansible_collections/amazon/aws/.github/workflows/update-variables.yml
new file mode 100644
index 000000000..0a556ffc1
--- /dev/null
+++ b/ansible_collections/amazon/aws/.github/workflows/update-variables.yml
@@ -0,0 +1,16 @@
+---
+name: update collection variables
+
+concurrency:
+ group: ${{ github.workflow }} @ ${{ github.sha }}
+ cancel-in-progress: true
+
+on:
+ push:
+ branches:
+ - main
+ - stable-*
+ pull_request_target:
+jobs:
+ update-variables:
+ uses: ansible-network/github_actions/.github/workflows/update_aws_variables.yml@main