31 lines
845 B
YAML
31 lines
845 B
YAML
name: 'Composite Action Template'
|
|
description: 'Composite Action 範本'
|
|
author: 'Jeffery'
|
|
inputs:
|
|
runner_token:
|
|
description: 'Gitea Runner Token'
|
|
required: true
|
|
text:
|
|
description: '輸入的文字'
|
|
default: "Hello, World!"
|
|
outputs:
|
|
text:
|
|
description: '輸出的文字'
|
|
value: ${{ steps.display.outputs.text }}
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: 顯示資訊
|
|
id: display
|
|
env:
|
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
|
RUNNER_TOKEN: ${{ inputs.runner_token }}
|
|
TEXT: ${{ inputs.text }}
|
|
run: |
|
|
echo "Gitea Server Url: $GITEA_SERVER_URL"
|
|
echo "Gitea Repository: $GITEA_REPOSITORY"
|
|
echo "Gitea Runner Token: $RUNNER_TOKEN"
|
|
echo "Input Text: $TEXT"
|
|
echo "text=$TEXT" >> "$GITHUB_OUTPUT"
|
|
shell: bash |