Merge pull request '改用 workflow 條件檢查版本輸出' (#9) from develop into master
CD / Release Tag Version (push) Successful in 8s
CD / Release Tag Version (push) Successful in 8s
Reviewed-on: composite-actions/release-tag-version#9 Reviewed-by: 系統管理員 <1+admin@noreply.localhost>
This commit was merged in pull request #9.
This commit is contained in:
+9
-11
@@ -13,20 +13,18 @@ runs:
|
||||
uses: https://gitea.jsc.idv.tw/docker-actions/calculate-version@${{ vars.ACTION_CALCULATE_VERSION }}
|
||||
- name: 組合釋出參數
|
||||
id: release-params
|
||||
if: ${{ steps.version-calculate.outputs.version != '' }}
|
||||
run: |
|
||||
repository="${{ gitea.repository }}"
|
||||
version_value="${{ steps.version-calculate.outputs.version }}"
|
||||
if [ -z "$version_value" ]; then
|
||||
echo "version-calculate output version is empty" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
version="v${version_value}"
|
||||
repository_name="${repository##*/}"
|
||||
{
|
||||
echo "name=${repository_name} ${version}"
|
||||
echo "tag_name=${version}"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
echo "name=${repository##*/} v${version_value}" >> "$GITHUB_OUTPUT"
|
||||
echo "tag_name=v${version_value}" >> "$GITHUB_OUTPUT"
|
||||
shell: bash
|
||||
- name: 檢查版本號輸出
|
||||
if: ${{ steps.version-calculate.outputs.version == '' }}
|
||||
run: |
|
||||
echo "version-calculate output version is empty" >&2
|
||||
exit 1
|
||||
shell: bash
|
||||
- name: 釋出並標註成品版本
|
||||
uses: akkuman/gitea-release-action@${{ vars.ACTION_GITEA_RELEASE_VERSION }}
|
||||
|
||||
Reference in New Issue
Block a user