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: "🔽 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 }} github-server-url: 'https://gitea.louisgallet.fr' - name: "🐙 Setup .NET" uses: "actions/setup-dotnet@v3" with: dotnet-version: '8.0.x' - name: "🏗️ Build" run: dotnet build - name: "✅ Test" run: dotnet test