mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix up workflow step names
This commit is contained in:
parent
f1e08e5416
commit
5309bd7516
2 changed files with 8 additions and 6 deletions
4
.github/workflows/draft-release.yml
vendored
4
.github/workflows/draft-release.yml
vendored
|
@ -27,7 +27,7 @@ env:
|
|||
jobs:
|
||||
|
||||
list-artifacts:
|
||||
name: Download and list all artifacts
|
||||
name: List Artifacts
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
# Checkout here so we can easily use custom actions
|
||||
|
@ -38,7 +38,7 @@ jobs:
|
|||
run: ls -R artifacts/
|
||||
|
||||
create-github-release:
|
||||
name: Download and list all artifacts
|
||||
name: Draft Release v${{ inputs.salt-version }}
|
||||
runs-on: ubuntu-22.04
|
||||
outputs:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
|
|
10
.github/workflows/release-artifact.yml
vendored
10
.github/workflows/release-artifact.yml
vendored
|
@ -17,7 +17,7 @@ on:
|
|||
jobs:
|
||||
|
||||
list-files:
|
||||
name: List Files From Artifact
|
||||
name: List ${{ inputs.name }}
|
||||
runs-on: ubuntu-22.04
|
||||
outputs:
|
||||
files: ${{ steps.list-files.outputs.files }}
|
||||
|
@ -26,12 +26,13 @@ jobs:
|
|||
with:
|
||||
name: ${{ inputs.name }}
|
||||
path: artifacts
|
||||
- run: find artifacts -maxdepth 1 -type f -printf '%f\n'
|
||||
- id: list-files
|
||||
run: |
|
||||
echo files="$(find artifacts -maxdepth 1 -type f -printf '%f\n' | jq -Rnc '[inputs | { file: "\(.)" }]')" >> "$GITHUB_OUTPUT"
|
||||
|
||||
upload-files:
|
||||
name: Upload Source Tarball Artifacts
|
||||
name: Upload ${{ matrix.file }} from ${{ inputs.name }}
|
||||
runs-on: ubuntu-22.04
|
||||
needs:
|
||||
- list-files
|
||||
|
@ -44,10 +45,11 @@ jobs:
|
|||
name: ${{ inputs.name }}
|
||||
path: artifacts
|
||||
|
||||
- id: file-type
|
||||
- name: Detect type of ${{ matrix.file }}
|
||||
id: file-type
|
||||
run: echo "file_type=$( file --mime-type artifacts/${{ matrix.file }} )" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload Source Tarball
|
||||
- name: Upload ${{ matrix.file }}
|
||||
id: upload-release-asset-source
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
|
|
Loading…
Add table
Reference in a new issue