From 60019808fe3553b1d351e218bdf992a332225f01 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 2 May 2022 21:02:04 +0200 Subject: [PATCH] fix: problem when accessing tap repo (#3582) --- .github/workflows/zitadel.yml | 11 +++++------ .goreleaser.yaml | 1 + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/zitadel.yml b/.github/workflows/zitadel.yml index ed0b21def..66b031a23 100644 --- a/.github/workflows/zitadel.yml +++ b/.github/workflows/zitadel.yml @@ -22,6 +22,10 @@ jobs: go-version: 1.17 - name: Source checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Fetch all tags + run: git fetch --force --tags - name: Set up QEMU uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx @@ -51,11 +55,6 @@ jobs: registry: europe-docker.pkg.dev username: _json_key_base64 password: ${{ secrets.GCR_JSON_KEY_BASE64 }} - - uses: tibdex/github-app-token@v1 - id: generate-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - uses: goreleaser/goreleaser-action@v2 name: Publish ZITADEL if: steps.semantic.outputs.new_release_published == 'true' && github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' @@ -65,7 +64,7 @@ jobs: args: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_TOKEN_TAP: ${{ steps.generate_token.outputs.token }} + GITHUB_TOKEN_TAP: ${{ secrets.GITHUB_TOKEN_TAP }} RELEASE_VERSION: ${{ steps.semantic.outputs.release-version }} # I think this line is not needed. Nevertheless, it's explicit - name: Publish go coverage uses: codecov/codecov-action@v3.1.0 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index f2e5a595a..dc37e8179 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -27,6 +27,7 @@ builds: goarch: - amd64 - arm64 + dist: .artifacts/goreleaser dockers: