diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 013aa71..7bad377 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -22,7 +22,7 @@ jobs: RUNNER_TOOL_CACHE: /toolcache # Runner Tool Cache steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET SDK uses: actions/setup-dotnet@v3 @@ -45,13 +45,12 @@ jobs: set-tag: name: Set Tag Name runs-on: ubuntu-latest + env: + RUNNER_TOOL_CACHE: /toolcache outputs: tag_name: ${{ steps.set_tag.outputs.tag_name }} steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 # important: get full history and tags + - uses: actions/checkout@v4 - name: Determine next semantic version tag id: set_tag @@ -90,7 +89,7 @@ jobs: needs: [build-and-test, set-tag] steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Docker Buildx uses: docker/setup-buildx-action@v2 @@ -110,10 +109,11 @@ jobs: --push . tag: - name: Create Tag for Gitea - needs: [docker-build-and-push] - #if: github.ref == 'refs/heads/main' && github.event_name == 'push' + name: Create Tag + needs: [docker-build, build, set-tag] runs-on: ubuntu-latest + env: + RUNNER_TOOL_CACHE: /toolcache steps: - uses: actions/checkout@v4 with: