From 5309bd75166d657855463db3509b5cb61810111c Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Mon, 16 Dec 2024 17:44:51 -0700 Subject: [PATCH] Fix up workflow step names --- .github/workflows/draft-release.yml | 4 ++-- .github/workflows/release-artifact.yml | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index d40324e2332..0eb554be36e 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -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 }} diff --git a/.github/workflows/release-artifact.yml b/.github/workflows/release-artifact.yml index 5025643f073..5829c676fbf 100644 --- a/.github/workflows/release-artifact.yml +++ b/.github/workflows/release-artifact.yml @@ -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: