diff --git a/action.yml b/action.yml index fe951af..6975cac 100644 --- a/action.yml +++ b/action.yml @@ -1,31 +1,23 @@ -name: 'Composite Action Template' -description: 'Composite Action 範本' +name: 'DOTNET QC' +description: '品質檢查 NUGET 套件' author: 'Jeffery' inputs: - runner_token: - description: 'Gitea Runner Token' + checkout_version: + description: 'checkout 版本' + required: true + cache_nuget_version: + description: 'cache-nuget 版本' 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 \ No newline at end of file + - uses: actions/checkout@${{ inputs.checkout_version }} + shell: bash + - uses: https://gitea.jsc.idv.tw/actions/cache-nuget@${{ inputs.cache_nuget_version }} + shell: bash + - run: dotnet restore + shell: bash + - run: dotnet build --no-restore + shell: bash + - run: dotnet test --no-restore --no-build + shell: bash \ No newline at end of file