From ce903a806884ba9266d0f3df08f1e51a22652cfe 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 | 12 +++++++++--- 2 files changed, 13 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..188ec86 100644 --- a/action.yml +++ b/action.yml @@ -4,9 +4,15 @@ 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