From 1ad46793df2e88f1d4cb50a3198c5ba8f4055218 Mon Sep 17 00:00:00 2001 From: Raimo Radczewski Date: Thu, 23 May 2024 18:50:56 +0200 Subject: [PATCH] Fix action --- .github/workflows/test.yml | 5 ++++- action.yml | 11 ++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1f0592d..586f443 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,4 +10,7 @@ jobs: steps: - name: Run another action - uses: crftd-tech/trunkver@main \ No newline at end of file + id: trunkver + uses: crftd-tech/trunkver@main + - name: Print trunkver + run: echo "The trunkver is ${{ steps.trunkver.outputs.trunkver }}" \ No newline at end of file diff --git a/action.yml b/action.yml index ccd81df..31bac3f 100644 --- a/action.yml +++ b/action.yml @@ -4,9 +4,14 @@ author: crftd.tech outputs: trunkver: - description: The trunkver + description: The trunkver runs: using: docker - image: docker://ghcr.io/crftd/trunkver:latest - entrypoint: "/bin/sh -c 'echo trunkver=$(trunkver) | tee $GITHUB_OUTPUT'" + image: docker://ghcr.io/crftd-tech/trunkver:latest + entrypoint: /bin/sh + args: + - -eu + - -o pipefail + - -c + - echo trunkver=$(/trunkver) | tee $GITHUB_OUTPUT