Merge pull request 'fix(CD 工作流程): 選取包含 commit 的最新 tag' (#3) from develop into master
CD / DEPLOY (push) Successful in 3s
CD / DEPLOY (push) Successful in 3s
Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
@@ -16,6 +16,6 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Get Commit Tag
|
- name: Get Commit Tag
|
||||||
id: commit
|
id: commit
|
||||||
run: echo "tag=$(git describe --contains ${{ env.COMMIT_SHA }})" >> $GITEA_OUTPUT
|
run: echo "tag=$(git for-each-ref --sort=-creatordate --format='%(refname:strip=2)' refs/tags --contains ${{ env.COMMIT_SHA }} | head -n 1)" >> $GITEA_OUTPUT
|
||||||
- name: Show Tag
|
- name: Show Tag
|
||||||
run: echo "${{ steps.commit.outputs.tag }}"
|
run: echo "${{ steps.commit.outputs.tag }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user