forked from ansible-collections/amazon.aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
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 | ||
#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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}' |