Skip to content

Commit

Permalink
Initial Release Workflow testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Aug 9, 2023
1 parent 44eec36 commit 29bd465
Show file tree
Hide file tree
Showing 18 changed files with 157 additions and 41 deletions.
56 changes: 56 additions & 0 deletions .github/actions/ansible_release_log/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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

runs:
using: composite
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python }}

- name: Prepare release environment
run: |
pip install rst-to-myst[sphinx]
#pip install antsibull-changelog
pip install git+https://github.com/felixfontein/antsibull-changelog.git@restrict
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-log-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-log-md
path: changelog-release.md
20 changes: 20 additions & 0 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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: tremble/amazon.aws/.github/actions/ansible_release_log@main
#uses: ansible-collections/amazon.aws/.github/actions/ansible_release_log.yml@main
with:
release: ${{ github.ref_name }}
30 changes: 30 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,36 @@ amazon.aws Release Notes
.. contents:: Topics


v7.0.0-dev0
===========

Minor Changes
-------------

- ec2_instance_info - add new parameter `include_attributes` to describe instance attributes (https://github.com/ansible-collections/amazon.aws/pull/1577).
- module_utils.botocore - migrate from vendored copy of LooseVersion to packaging.version.Version (https://github.com/ansible-collections/amazon.aws/pull/1587).
- rds_cluster - add support for another ``state`` choice called ``started``. This starts the rds cluster (https://github.com/ansible-collections/amazon.aws/pull/1647/files).
- rds_cluster - add support for another ``state`` choice called ``stopped``. This stops the rds cluster (https://github.com/ansible-collections/amazon.aws/pull/1647/files).
- route53 - add a ``wait_id`` return value when a change is done (https://github.com/ansible-collections/amazon.aws/pull/1683).
- route53_health_check - add support for a string list parameter called ``child_health_checks`` to specify health checks that must be healthy for the calculated health check (https://github.com/ansible-collections/amazon.aws/pull/1631).
- route53_health_check - add support for an integer parameter called ``health_threshold`` to specify the minimum number of healthy child health checks that must be healthy for the calculated health check (https://github.com/ansible-collections/amazon.aws/pull/1631).
- route53_health_check - add support for another ``type`` choice called ``CALCULATED`` (https://github.com/ansible-collections/amazon.aws/pull/1631).
- s3_object - Allow recursive copy of objects in S3 bucket (https://github.com/ansible-collections/amazon.aws/issues/1379).

Breaking Changes / Porting Guide
--------------------------------

- module_utils - ``module_utils.urls`` was previously deprecated and has been removed ().
- module_utils._version - vendored copy of distutils.version has been dropped (https://github.com/ansible-collections/amazon.aws/pull/1587).

Bugfixes
--------

- aws_ec2 inventory plugin - fix ``NoRegionError`` when no regions are provided and region isn't specified (https://github.com/ansible-collections/amazon.aws/issues/1551).
- ec2_vpc_route_table_info - default filters to empty dictionary (https://github.com/ansible-collections/amazon.aws/issues/1668).
- s3_bucket - fixes issue when deleting a bucket with unversioned objects (https://github.com/ansible-collections/amazon.aws/issues/1533).
- s3_object - fixes regression related to objects with a leading ``/`` (https://github.com/ansible-collections/amazon.aws/issues/1548).

v6.3.0
======

Expand Down
53 changes: 51 additions & 2 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1903,8 +1903,9 @@ releases:
- ec2_vpc_route_table - add support for Carrier Gateway entry (https://github.com/ansible-collections/amazon.aws/pull/926).
- ec2_vpc_subnet - retry fetching subnet details after creation if the first
attempt fails (https://github.com/ansible-collections/amazon.aws/pull/1526).
- inventory aws ec2 - add parameter ``use_ssm_inventory`` allowing to query ssm
inventory information for configured EC2 instances and populate hostvars (https://github.com/ansible-collections/amazon.aws/issues/704).
- inventory aws ec2 - add parameter ``use_ssm_inventory`` allowing to query
ssm inventory information for configured EC2 instances and populate hostvars
(https://github.com/ansible-collections/amazon.aws/issues/704).
- inventory plugins - refactor cache handling (https://github.com/ansible-collections/amazon.aws/pull/1285).
- inventory plugins - refactor file verification handling (https://github.com/ansible-collections/amazon.aws/pull/1285).
- inventory_aws_ec2 integration tests - replace local module ``test_get_ssm_inventory``
Expand Down Expand Up @@ -2266,3 +2267,51 @@ releases:
- ec2_vpc_route_table_info-filter-fix.yml
- release_summary.yml
release_date: '2023-08-03'
7.0.0-dev8:
changes:
breaking_changes:
- module_utils - ``module_utils.urls`` was previously deprecated and has been
removed ().
- module_utils._version - vendored copy of distutils.version has been dropped
(https://github.com/ansible-collections/amazon.aws/pull/1587).
bugfixes:
- aws_ec2 inventory plugin - fix ``NoRegionError`` when no regions are provided
and region isn't specified (https://github.com/ansible-collections/amazon.aws/issues/1551).
- ec2_vpc_route_table_info - default filters to empty dictionary (https://github.com/ansible-collections/amazon.aws/issues/1668).
- s3_bucket - fixes issue when deleting a bucket with unversioned objects (https://github.com/ansible-collections/amazon.aws/issues/1533).
- s3_object - fixes regression related to objects with a leading ``/`` (https://github.com/ansible-collections/amazon.aws/issues/1548).
minor_changes:
- ec2_instance_info - add new parameter `include_attributes` to describe instance
attributes (https://github.com/ansible-collections/amazon.aws/pull/1577).
- module_utils.botocore - migrate from vendored copy of LooseVersion to packaging.version.Version
(https://github.com/ansible-collections/amazon.aws/pull/1587).
- rds_cluster - add support for another ``state`` choice called ``started``.
This starts the rds cluster (https://github.com/ansible-collections/amazon.aws/pull/1647/files).
- rds_cluster - add support for another ``state`` choice called ``stopped``.
This stops the rds cluster (https://github.com/ansible-collections/amazon.aws/pull/1647/files).
- route53 - add a ``wait_id`` return value when a change is done (https://github.com/ansible-collections/amazon.aws/pull/1683).
- route53_health_check - add support for a string list parameter called ``child_health_checks``
to specify health checks that must be healthy for the calculated health check
(https://github.com/ansible-collections/amazon.aws/pull/1631).
- route53_health_check - add support for an integer parameter called ``health_threshold``
to specify the minimum number of healthy child health checks that must be
healthy for the calculated health check (https://github.com/ansible-collections/amazon.aws/pull/1631).
- route53_health_check - add support for another ``type`` choice called ``CALCULATED``
(https://github.com/ansible-collections/amazon.aws/pull/1631).
- s3_object - Allow recursive copy of objects in S3 bucket (https://github.com/ansible-collections/amazon.aws/issues/1379).
fragments:
- 1538-s3-null.yml
- 1548-s3_object-leading-slash.yml
- 1551-ec2_inventory-no-region.yml
- 1587-LooseVersion.yml
- 1631-route53_health_check-added-calculcated.yml
- 1647-add-type-started-and-stopped.yml
- 1683-route53-wait_id.yml
- 1685-ssm_parameter-update-examples-to-use-fqcn.yml
- 20230612-s3_object-support-copy-objects-recursively.yml
- 20230702-isort.yml
- 7.0.0-urls.yml
- add-pytest-ansible.yml
- ec2_instance_info-support-new-attribute.yml
- ec2_vpc_route_table_info-filter-fix.yml
release_date: '2023-08-09'
2 changes: 0 additions & 2 deletions changelogs/fragments/1538-s3-null.yml

This file was deleted.

4 changes: 0 additions & 4 deletions changelogs/fragments/1548-s3_object-leading-slash.yml

This file was deleted.

2 changes: 0 additions & 2 deletions changelogs/fragments/1551-ec2_inventory-no-region.yml

This file was deleted.

4 changes: 0 additions & 4 deletions changelogs/fragments/1587-LooseVersion.yml

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions changelogs/fragments/1647-add-type-started-and-stopped.yml

This file was deleted.

2 changes: 0 additions & 2 deletions changelogs/fragments/1683-route53-wait_id.yml

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions changelogs/fragments/20230702-isort.yml

This file was deleted.

2 changes: 0 additions & 2 deletions changelogs/fragments/7.0.0-urls.yml

This file was deleted.

3 changes: 0 additions & 3 deletions changelogs/fragments/add-pytest-ansible.yml

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions changelogs/fragments/ec2_vpc_route_table_info-filter-fix.yml

This file was deleted.

0 comments on commit 29bd465

Please sign in to comment.