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 275102d
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/actions/ansible_release_log/action.yml
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 }}
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 }}'

0 comments on commit 275102d

Please sign in to comment.