+17
-25
@@ -1,31 +1,23 @@
|
|||||||
name: 'Composite Action Template'
|
name: 'DOTNET QC'
|
||||||
description: 'Composite Action 範本'
|
description: '品質檢查 NUGET 套件'
|
||||||
author: 'Jeffery'
|
author: 'Jeffery'
|
||||||
inputs:
|
inputs:
|
||||||
runner_token:
|
checkout_version:
|
||||||
description: 'Gitea Runner Token'
|
description: 'checkout 版本'
|
||||||
|
required: true
|
||||||
|
cache_nuget_version:
|
||||||
|
description: 'cache-nuget 版本'
|
||||||
required: true
|
required: true
|
||||||
text:
|
|
||||||
description: '輸入的文字'
|
|
||||||
default: "Hello, World!"
|
|
||||||
outputs:
|
|
||||||
text:
|
|
||||||
description: '輸出的文字'
|
|
||||||
value: ${{ steps.display.outputs.text }}
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: 顯示資訊
|
- uses: actions/checkout@${{ inputs.checkout_version }}
|
||||||
id: display
|
shell: bash
|
||||||
env:
|
- uses: https://gitea.jsc.idv.tw/actions/cache-nuget@${{ inputs.cache_nuget_version }}
|
||||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
shell: bash
|
||||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
- run: dotnet restore
|
||||||
RUNNER_TOKEN: ${{ inputs.runner_token }}
|
shell: bash
|
||||||
TEXT: ${{ inputs.text }}
|
- run: dotnet build --no-restore
|
||||||
run: |
|
shell: bash
|
||||||
echo "Gitea Server Url: $GITEA_SERVER_URL"
|
- run: dotnet test --no-restore --no-build
|
||||||
echo "Gitea Repository: $GITEA_REPOSITORY"
|
shell: bash
|
||||||
echo "Gitea Runner Token: $RUNNER_TOKEN"
|
|
||||||
echo "Input Text: $TEXT"
|
|
||||||
echo "text=$TEXT" >> "$GITHUB_OUTPUT"
|
|
||||||
shell: bash
|
|
||||||
Reference in New Issue
Block a user