name: CI on: push: jobs: build: runs-on: ubuntu-latest steps: - name: Get Tag Name & REPO Url uses: olegtarasov/get-tag@v2.1.2 id: tagName with: tagRegex: "test-(.+)" # Optional. Returns specified group text as tag name. Full tag string is returned if regex is not defined. tagRegexGroup: 1 # Optional. Default is 1. failOnNoTag: true # Optional. Default is false. - name: Show tag name run: echo ${{ steps.tagName.outputs.tag }} - name: print token run: echo ${{ secrets.TOKEN_GITEA }} - name: Checkout code uses: actions/checkout@v3 # Clone the URL OF REMOTE PROJECT to test with: repository: ${{ steps.tagName.outputs.tag }} # Set default branch ref: master token: ${{ secrets.TOKEN_GITEA }} - uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.x' - name: "🏗️ Build" run: dotnet build - name: "✅ Test" run: dotnet test