mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 04:22:06 +08:00
ci: make release workflow reusable and call it from auto-tag
This commit is contained in:
parent
98537b94f9
commit
e54f1236ec
7
.github/workflows/auto-tag.yml
vendored
7
.github/workflows/auto-tag.yml
vendored
@ -45,4 +45,9 @@ jobs:
|
|||||||
git config --global user.name 'github-actions[bot]'
|
git config --global user.name 'github-actions[bot]'
|
||||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
git tag -a $new_tag -m "Release $new_tag"
|
git tag -a $new_tag -m "Release $new_tag"
|
||||||
git push origin $new_tag
|
git push origin $new_tag
|
||||||
|
|
||||||
|
release:
|
||||||
|
needs: auto-tag
|
||||||
|
uses: ./.github/workflows/release.yml
|
||||||
|
secrets: inherit
|
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@ -1,6 +1,7 @@
|
|||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_call:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user