From b7d553ec06eec7dddd2e5ef76ca2b81f254b7ca6 Mon Sep 17 00:00:00 2001 From: Mike Pirog Date: Thu, 14 Nov 2024 10:47:28 -0500 Subject: [PATCH] fixed output verifier and added filename test --- .github/workflows/pr-func-tests.yml | 11 +++++++++++ CHANGELOG.md | 2 ++ action.yml | 8 ++++---- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-func-tests.yml b/.github/workflows/pr-func-tests.yml index d19d0c6..e8948cf 100644 --- a/.github/workflows/pr-func-tests.yml +++ b/.github/workflows/pr-func-tests.yml @@ -26,6 +26,17 @@ jobs: entrypoint: bin/test upload-key: something-else-${{ github.sha }} + basic-func-filename-test: + runs-on: ubuntu-24.04 + steps: + - name: Checkout action code + uses: actions/checkout@v4 + - name: Run Pkg Action + uses: ./ + with: + entrypoint: bin/test + filename: bob + basic-cross-platform-test: runs-on: ${{ matrix.os }} strategy: diff --git a/CHANGELOG.md b/CHANGELOG.md index 4507047..1681fe7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }}) +* Added `inputs.filename` to customize the name of the output binary + ## v5.1.0 - [October 26, 2024](https://github.com/lando/pkg-action/releases/tag/v5.1.0) * Added `inputs.upload-key` to customize the value of `outputs.artifact-key` diff --git a/action.yml b/action.yml index 0780aaf..f284971 100644 --- a/action.yml +++ b/action.yml @@ -173,13 +173,13 @@ runs: shell: bash run: | echo "::group::Internal output information" - echo "arch=steps.pkg-action-internal.outputs.target-arch" - echo "node=steps.pkg-action-internal.outputs.target-node" - echo "os=steps.pkg-action-internal.outputs.target-os" + echo "arch=${{ steps.pkg-action-internal.outputs.target-arch }}" + echo "node=${{ steps.pkg-action-internal.outputs.target-node }}" + echo "os=${{ steps.pkg-action-internal.outputs.target-os }}" echo "::endgroup::" echo "::group::Output information" - echo "artifact-key-key=${{ steps.pkg-action.outputs.artifact-key }}" + echo "artifact-key=${{ steps.pkg-action.outputs.artifact-key }}" echo "file=${{ steps.pkg-action.outputs.file }}" echo "::endgroup::" - name: Run native ${{ steps.pkg-action-internal.outputs.target-arch }} pkg command