mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Improve the release changes action and its usage
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
be4160e3c5
commit
3b9d865365
2 changed files with 13 additions and 5 deletions
14
.github/actions/release-changes/action.yml
vendored
14
.github/actions/release-changes/action.yml
vendored
|
@ -1,6 +1,11 @@
|
|||
---
|
||||
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
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
|
@ -17,7 +22,7 @@ runs:
|
|||
- name: Set salt version
|
||||
shell: bash
|
||||
run: |
|
||||
echo '${{ env.SALT_VERSION }}' > salt/_version.txt
|
||||
echo '${{ inputs.salt-version }}' > salt/_version.txt
|
||||
|
||||
- name: Update Debian changelog
|
||||
shell: bash
|
||||
|
@ -51,11 +56,12 @@ runs:
|
|||
- name: Create release changes diff
|
||||
shell: bash
|
||||
run: |
|
||||
git diff --no-color > salt-${{ env.SALT_VERSION }}.diff
|
||||
git diff --no-color > salt-${{ inputs.salt-version }}.diff
|
||||
|
||||
- name: Upload Source Tarball as an Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: salt-${{ env.SALT_VERSION }}.diff
|
||||
path: salt-${{ env.SALT_VERSION }}.diff
|
||||
name: salt-${{ inputs.salt-version }}.diff
|
||||
path: salt-${{ inputs.salt-version }}.diff
|
||||
retention-days: 7
|
||||
if-no-files-found: error
|
||||
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -220,7 +220,7 @@ jobs:
|
|||
changed-files: ${{ needs.prepare-workflow.outputs.changed-files }}
|
||||
|
||||
release-changes:
|
||||
name: Create release diff
|
||||
name: Create Release Diff
|
||||
if: ${{ fromJSON(needs.prepare-workflow.outputs.jobs)['github-hosted-runners'] }}
|
||||
needs:
|
||||
- prepare-workflow
|
||||
|
@ -244,6 +244,8 @@ jobs:
|
|||
|
||||
- name: Generate Changes Diff
|
||||
uses: ./.github/actions/release-changes
|
||||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
|
||||
build-source-tarball:
|
||||
name: Build Source Tarball
|
||||
|
|
Loading…
Add table
Reference in a new issue