Skip to content

Commit

Permalink
Raw jq for actual version
Browse files Browse the repository at this point in the history
  • Loading branch information
fhammerl committed Mar 7, 2023
1 parent cb86beb commit 0d44da2
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/tag-test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0d44da2

Please sign in to comment.