Debian Codegraph @

ansible_collections/amazon/aws/.github/actions/ansible_release_log/action.yml

raw
1 ---
2 name: Ansible GitHub Release Logs
3 author: Mark Chappell (tremble)
4 branding:
5 icon: git-branch
6 color: gray-dark
7 description: Generate Changelog entries for a GitHub release
8
9 inputs:
10 release:
11 description: The release version to publish
12 required: true
13
14 runs:
15 using: composite
16 steps:
17 - name: Set up Python
18 uses: actions/setup-python@v4
19 with:
20 python-version: 3.11
21
22 - name: Prepare release environment
23 run: |
24 pip install rst-to-myst[sphinx]
25 pip install antsibull-changelog
26 shell: bash
27
28 - name: Checkout current ref
29 uses: actions/checkout@master
30 with:
31 ref: ${{ github.ref }}
32
33 - name: Generate release log (RST)
34 run: |
35 antsibull-changelog generate -vvv --output changelog-release.rst --only-latest "${INPUT_RELEASE}"
36 shell: bash
37 env:
38 INPUT_RELEASE: ${{ inputs.release }}
39
40 - name: Upload RST release log
41 uses: actions/upload-artifact@v4
42 with:
43 name: changelog-rst
44 path: changelog-release.rst
45
46 - name: Convert release log (MD)
47 run: |
48 rst2myst convert changelog-release.rst
49 sed -i 's/^#/###/' changelog-release.md
50 shell: bash
51
52 - name: Upload MD release log
53 uses: actions/upload-artifact@v4
54 with:
55 name: changelog-md
56 path: changelog-release.md