1
0
Fork 0

BEtter tag format

pull/1365/head^2
Ferenc Hammerl 2023-03-07 11:05:52 +00:00
parent 7edb0957cc
commit cb86beb23a
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ jobs:
- id: commit - id: commit
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- id: tag - id: tag
run: echo "tag=${{ 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 .version)" >> "$GITHUB_OUTPUT"
- name: verify package exists - name: verify package exists
run: ls packages/${{ github.event.inputs.package }} run: ls packages/${{ github.event.inputs.package }}
@ -84,7 +84,7 @@ jobs:
env: env:
SLACK_WEBHOOK: ${{ secrets.SLACK }} SLACK_WEBHOOK: ${{ secrets.SLACK }}
tag: tag:
name: "Tag commit with ${{ github.event.inputs.package }}-version" name: "Tag ${{ needs.test.outputs.sha }} with ${{ needs.test.outputs.tag }}"
runs-on: "macos-latest" runs-on: "macos-latest"
needs: [test, publish] needs: [test, publish]
steps: steps:

View File

@ -14,7 +14,7 @@ jobs:
- id: commit - id: commit
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- id: tag - id: tag
run: echo "tag=http-client-$(cat packages/http-client/package.json | jq .version)" >> "$GITHUB_OUTPUT" run: echo "tag=@actions/http-client-$(cat packages/http-client/package.json | jq .version)-test-tag" >> "$GITHUB_OUTPUT"
publish: publish:
runs-on: macos-latest runs-on: macos-latest
needs: test needs: test