Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d6672e5a3 | ||
|
|
fef95baa40 | ||
|
|
c649a994d1 | ||
|
|
fdfe09383a | ||
|
|
c77442abdc |
@@ -27,9 +27,9 @@ jobs:
|
||||
name: 2. TEST
|
||||
runs-on: ubuntu
|
||||
needs: [build]
|
||||
if: ${{ needs.build.outputs.is_beta == 'true' }}
|
||||
env:
|
||||
VERSION: ${{ needs.build.outputs.version }}
|
||||
IS_BETA: ${{ needs.build.outputs.is_beta }}
|
||||
outputs:
|
||||
version: ${{ steps.calculate-version.outputs.version }}
|
||||
steps:
|
||||
@@ -37,14 +37,14 @@ jobs:
|
||||
id: calculate-version
|
||||
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v${{ env.VERSION }}
|
||||
with:
|
||||
is_beta: true
|
||||
is_beta: ${{ env.IS_BETA == "true" }}
|
||||
result:
|
||||
name: 3. RESULT
|
||||
runs-on: ubuntu
|
||||
needs: [build]
|
||||
if: ${{ needs.build.outputs.is_beta == 'false' }}
|
||||
needs: [build,test]
|
||||
env:
|
||||
VERSION: ${{ needs.build.outputs.version }}
|
||||
VERSION: ${{ needs.test.outputs.version }}
|
||||
IS_BETA: ${{ needs.build.outputs.is_beta }}
|
||||
steps:
|
||||
- name: Publishing Release
|
||||
uses: akkuman/gitea-release-action@${{ vars.ACTION_GITEA_RELEASE_VERSION }}
|
||||
@@ -52,4 +52,4 @@ jobs:
|
||||
name: "${{ gitea.event.repository.name }} v${{ env.VERSION }}"
|
||||
tag_name: "v${{ env.VERSION }}"
|
||||
target_commitish: ${{ gitea.sha }}
|
||||
prerelease: false
|
||||
prerelease: ${{ env.IS_BETA == "true" }}
|
||||
|
||||
@@ -16,6 +16,6 @@ jobs:
|
||||
fetch-depth: 0
|
||||
- name: Get Commit Tag
|
||||
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
|
||||
run: echo "${{ steps.commit.outputs.tag }}"
|
||||
|
||||
Reference in New Issue
Block a user