mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 00:59:09 +08:00
Use constants and push for tag-test
Fix typo in releases.yml
This commit is contained in:
parent
39e91a437a
commit
b92588fa7f
2
.github/workflows/releases.yml
vendored
2
.github/workflows/releases.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
||||
- id: commit
|
||||
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
|
||||
- id: tag
|
||||
run: echo "tag=${{ github.event.inputs.package }}-$(cat packages/tool-cache/package.json | jq .version)" >> "$GITHUB_OUTPUT"
|
||||
run: echo "tag=${{ github.event.inputs.package }}-$(cat packages/${{ github.event.inputs.package }}/package.json | jq .version)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: verify package exists
|
||||
run: ls packages/${{ github.event.inputs.package }}
|
||||
|
15
.github/workflows/tag-test.yml
vendored
15
.github/workflows/tag-test.yml
vendored
@ -1,11 +1,6 @@
|
||||
name: Tag test
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
package:
|
||||
required: true
|
||||
description: 'core, artifact, cache, exec, github, glob, http-client, io, tool-cache'
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@ -19,15 +14,15 @@ jobs:
|
||||
- id: commit
|
||||
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
|
||||
- id: tag
|
||||
run: echo "tag=${{ github.event.inputs.package }}-$(cat packages/tool-cache/package.json | jq .version)" >> "$GITHUB_OUTPUT"
|
||||
run: echo "tag=http-client-$(cat packages/http-client/package.json | jq .version)" >> "$GITHUB_OUTPUT"
|
||||
publish:
|
||||
runs-on: macos-latest
|
||||
needs: test
|
||||
steps:
|
||||
- name: foo
|
||||
run: echo "foo"
|
||||
- name: skip publish
|
||||
run: echo "skip publish"
|
||||
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"
|
||||
needs: [test, publish]
|
||||
steps:
|
||||
|
Loading…
x
Reference in New Issue
Block a user