Files
calculate-version/action.yaml
2026-03-25 06:40:59 +00:00

18 lines
488 B
YAML

name: 'CALCULATE VERSION'
description: '計算版本號'
author: 'Jeffery'
inputs:
IS_BETA:
description: '是否為 beta 版本'
default: "false"
outputs:
version:
description: '計算出的版本號'
runs:
using: 'docker'
image: 'Dockerfile'
env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
RUNNER_TOKEN: ${{ inputs.RUNNER_TOKEN || secrets.GITEA_TOKEN || secrets.RUNNER_TOKEN }}
IS_BETA: ${{ inputs.IS_BETA }}