salt/.github/actions/release-changes/action.yml
Pedro Algarvio 8d5a309fa0
Upgrade to python-tools-scripts==0.10.1 and make use of it's virtualenv support
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-30 20:54:05 +00:00

58 lines
1.3 KiB
YAML

---
name: release-changes
description: Create release changes diff
inputs:
salt-version:
type: string
required: true
description: The Salt version to set prior to creating the release changes
env:
COLUMNS: 160
runs:
using: composite
steps:
- name: Update Debian changelog
shell: bash
run: |
tools changelog update-deb --draft
tools changelog update-deb
- name: Update RPM changelog
shell: bash
run: |
tools changelog update-rpm --draft
tools changelog update-rpm
- name: Update Release Notes
shell: bash
run: |
tools changelog update-release-notes --draft
tools changelog update-release-notes
- name: Update CHANGELOG.md
shell: bash
run: |
tools changelog update-release-notes --draft
tools changelog update-release-notes
- name: Update CHANGELOG.md
shell: bash
run: |
tools docs man
- name: Create release changes diff
shell: bash
run: |
git diff --no-color > salt-${{ inputs.salt-version }}.diff
- name: Upload Source Tarball as an Artifact
uses: actions/upload-artifact@v3
with:
name: salt-${{ inputs.salt-version }}.diff
path: salt-${{ inputs.salt-version }}.diff
retention-days: 7
if-no-files-found: error