Skip to content

Commit

Permalink
Fix up workflow step names
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Dec 17, 2024
1 parent f1e08e5 commit 5309bd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 5309bd7

Please sign in to comment.