summaryrefslogtreecommitdiffstats
path: root/ansible_collections/amazon/aws/.github/actions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:22 +0000
commit38b7c80217c4e72b1d8988eb1e60bb6e77334114 (patch)
tree356e9fd3762877d07cde52d21e77070aeff7e789 /ansible_collections/amazon/aws/.github/actions
parentAdding upstream version 7.7.0+dfsg. (diff)
downloadansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.tar.xz
ansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.zip
Adding upstream version 9.4.0+dfsg.upstream/9.4.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/amazon/aws/.github/actions')
-rw-r--r--ansible_collections/amazon/aws/.github/actions/ansible_release_log/action.yml56
-rw-r--r--ansible_collections/amazon/aws/.github/actions/ansible_release_tag/action.yml40
2 files changed, 96 insertions, 0 deletions
diff --git a/ansible_collections/amazon/aws/.github/actions/ansible_release_log/action.yml b/ansible_collections/amazon/aws/.github/actions/ansible_release_log/action.yml
new file mode 100644
index 000000000..925ffeef3
--- /dev/null
+++ b/ansible_collections/amazon/aws/.github/actions/ansible_release_log/action.yml
@@ -0,0 +1,56 @@
+---
+name: Ansible GitHub Release Logs
+author: Mark Chappell (tremble)
+branding:
+ icon: git-branch
+ color: gray-dark
+description: Generate Changelog entries for a GitHub release
+
+inputs:
+ release:
+ description: The release version to publish
+ required: true
+
+runs:
+ using: composite
+ steps:
+ - name: Set up Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: 3.11
+
+ - name: Prepare release environment
+ run: |
+ pip install rst-to-myst[sphinx]
+ pip install antsibull-changelog
+ shell: bash
+
+ - name: Checkout current ref
+ uses: actions/checkout@master
+ with:
+ ref: ${{ github.ref }}
+
+ - name: Generate release log (RST)
+ run: |
+ antsibull-changelog generate -vvv --output changelog-release.rst --only-latest "${INPUT_RELEASE}"
+ shell: bash
+ env:
+ INPUT_RELEASE: ${{ inputs.release }}
+
+ - name: Upload RST release log
+ uses: actions/upload-artifact@v3
+ with:
+ name: changelog-rst
+ path: changelog-release.rst
+
+ - name: Convert release log (MD)
+ run: |
+ rst2myst convert changelog-release.rst
+ sed -i 's/^#/###/' changelog-release.md
+ shell: bash
+
+ - name: Upload MD release log
+ uses: actions/upload-artifact@v3
+ with:
+ name: changelog-md
+ path: changelog-release.md
diff --git a/ansible_collections/amazon/aws/.github/actions/ansible_release_tag/action.yml b/ansible_collections/amazon/aws/.github/actions/ansible_release_tag/action.yml
new file mode 100644
index 000000000..95da69d3d
--- /dev/null
+++ b/ansible_collections/amazon/aws/.github/actions/ansible_release_tag/action.yml
@@ -0,0 +1,40 @@
+---
+name: Ansible GitHub Release
+author: Mark Chappell (tremble)
+branding:
+ icon: git-branch
+ color: gray-dark
+description: Publish GitHub releases from an action
+
+inputs:
+ release:
+ description: The release version to publish
+ required: true
+
+ collection-name:
+ description: The name of the collection
+ required: true
+
+runs:
+ using: composite
+ steps:
+ - name: Checkout current ref
+ uses: actions/checkout@master
+ with:
+ ref: ${{ github.ref }}
+
+ - name: Download MD release log
+ uses: actions/download-artifact@v3
+ with:
+ name: changelog-md
+
+ - name: Create Release
+ run: |
+ ls
+ cat changelog-release.md
+ gh release create "${RELEASE}" --verify-tag -t "${COLLECTION_NAME} ${RELEASE}" -F changelog-release.md
+ shell: bash
+ env:
+ COLLECTION_NAME: ${{ inputs.collection-name }}
+ RELEASE: ${{ inputs.release }}
+ GH_TOKEN: ${{ github.token }}