Compare commits
10 Commits
6b4634e8ce
...
v0.0.7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2825c3740 | ||
|
|
919886cb55 | ||
|
|
9dfb8f1ecb | ||
|
|
446392f75e | ||
|
|
5c8d62ca6d | ||
|
|
52627c620d | ||
|
|
1e76690fa6 | ||
|
|
d61d76244d | ||
|
|
2c17bc5720 | ||
|
|
dfb9608d3d |
@@ -9,13 +9,15 @@ jobs:
|
||||
env:
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
steps:
|
||||
- name: 計算版本號
|
||||
id: version
|
||||
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.0.3
|
||||
- name: 發布專案
|
||||
uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }}
|
||||
with:
|
||||
tag_name: "v${{ steps.version.outputs.version }}"
|
||||
tag_name: "v0.0.7"
|
||||
- name: 計算版本號
|
||||
id: version
|
||||
uses: https://gitea.jsc.idv.tw/actions/calculate-version@v0.0.6
|
||||
with:
|
||||
RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
||||
- name: 清理舊版本 (保留最新2個)
|
||||
uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }}
|
||||
with:
|
||||
|
||||
@@ -2,10 +2,10 @@ FROM alpine:latest
|
||||
|
||||
# 更新並安裝必要的工具
|
||||
RUN apk update \
|
||||
&& apk add --no-cache bash curl jq
|
||||
&& apk add --no-cache bash curl jq
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
RUN sed -i 's/\r//' /entrypoint.sh && chmod +x /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
@@ -1,6 +1,10 @@
|
||||
name: 'CALCULATE VERSION'
|
||||
description: '計算版本號'
|
||||
author: 'Jeffery'
|
||||
inputs:
|
||||
RUNNER_TOKEN:
|
||||
description: 'Gitea Runner 用來存取的 Token,ex: ${{ secrets.RUNNER_TOKEN }}'
|
||||
required: true
|
||||
outputs:
|
||||
VERSION:
|
||||
description: '計算出的新版本號'
|
||||
@@ -11,4 +15,4 @@ runs:
|
||||
env:
|
||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }}
|
||||
RUNNER_TOKEN: ${{ inputs.RUNNER_TOKEN }}
|
||||
Reference in New Issue
Block a user