From 0d44da2b87f9ed48ae889d15c6cc19667aa37ec0 Mon Sep 17 00:00:00 2001 From: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com> Date: Tue, 7 Mar 2023 11:11:44 +0000 Subject: [PATCH] Raw jq for actual version --- .github/workflows/releases.yml | 2 +- .github/workflows/tag-test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index b3c0362e..6779b21a 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -19,7 +19,7 @@ jobs: - id: commit run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" - id: tag - run: echo "tag=@actions/${{ github.event.inputs.package }}@$(cat packages/${{ github.event.inputs.package }}/package.json | jq .version)" >> "$GITHUB_OUTPUT" + run: echo "tag=@actions/${{ github.event.inputs.package }}@$(cat packages/${{ github.event.inputs.package }}/package.json | jq -r .version" >> "$GITHUB_OUTPUT" - name: verify package exists run: ls packages/${{ github.event.inputs.package }} diff --git a/.github/workflows/tag-test.yml b/.github/workflows/tag-test.yml index 515eae99..018eda8c 100644 --- a/.github/workflows/tag-test.yml +++ b/.github/workflows/tag-test.yml @@ -14,7 +14,7 @@ jobs: - id: commit run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" - id: tag - run: echo "tag=@actions/http-client-$(cat packages/http-client/package.json | jq .version)-test-tag" >> "$GITHUB_OUTPUT" + run: echo "tag=@actions/http-client@$(cat packages/http-client/package.json | jq -r .version)-test-tag" >> "$GITHUB_OUTPUT" publish: runs-on: macos-latest needs: test