Compare commits
5
Commits
v0.0.0-beta.4
...
v0.0.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d6672e5a3 | ||
|
|
fef95baa40 | ||
|
|
c649a994d1 | ||
|
|
fdfe09383a | ||
|
|
c77442abdc |
@@ -27,9 +27,9 @@ jobs:
|
|||||||
name: 2. TEST
|
name: 2. TEST
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
needs: [build]
|
needs: [build]
|
||||||
if: ${{ needs.build.outputs.is_beta == 'true' }}
|
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.build.outputs.version }}
|
VERSION: ${{ needs.build.outputs.version }}
|
||||||
|
IS_BETA: ${{ needs.build.outputs.is_beta }}
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.calculate-version.outputs.version }}
|
version: ${{ steps.calculate-version.outputs.version }}
|
||||||
steps:
|
steps:
|
||||||
@@ -37,14 +37,14 @@ jobs:
|
|||||||
id: calculate-version
|
id: calculate-version
|
||||||
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v${{ env.VERSION }}
|
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v${{ env.VERSION }}
|
||||||
with:
|
with:
|
||||||
is_beta: true
|
is_beta: ${{ env.IS_BETA == "true" }}
|
||||||
result:
|
result:
|
||||||
name: 3. RESULT
|
name: 3. RESULT
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
needs: [build]
|
needs: [build,test]
|
||||||
if: ${{ needs.build.outputs.is_beta == 'false' }}
|
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ needs.build.outputs.version }}
|
VERSION: ${{ needs.test.outputs.version }}
|
||||||
|
IS_BETA: ${{ needs.build.outputs.is_beta }}
|
||||||
steps:
|
steps:
|
||||||
- name: Publishing Release
|
- name: Publishing Release
|
||||||
uses: akkuman/gitea-release-action@${{ vars.ACTION_GITEA_RELEASE_VERSION }}
|
uses: akkuman/gitea-release-action@${{ vars.ACTION_GITEA_RELEASE_VERSION }}
|
||||||
@@ -52,4 +52,4 @@ jobs:
|
|||||||
name: "${{ gitea.event.repository.name }} v${{ env.VERSION }}"
|
name: "${{ gitea.event.repository.name }} v${{ env.VERSION }}"
|
||||||
tag_name: "v${{ env.VERSION }}"
|
tag_name: "v${{ env.VERSION }}"
|
||||||
target_commitish: ${{ gitea.sha }}
|
target_commitish: ${{ gitea.sha }}
|
||||||
prerelease: false
|
prerelease: ${{ env.IS_BETA == "true" }}
|
||||||
|
|||||||
@@ -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