From aa36279bf0783638041168bd2ba15de8608dec0a Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Wed, 26 Jun 2024 11:58:46 -0700 Subject: [PATCH] fix asset path (take 2) --- .github/workflows/release.yml | 5 ++++- .goreleaser.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2297d4d..e95bcaf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -86,7 +86,10 @@ jobs: fetch-depth: 0 path: ${{ github.workspace }}/repo - name: Stamp released SHA - run: cd ${{ github.workspace }}/bridge && git rev-parse HEAD >> ${{ github.workspace }}/release_sha.txt + run: | + cd ${{ github.workspace }}/bridge && git rev-parse HEAD >> ${{ github.workspace }}/bridge/release_sha.txt + echo release_sha.txt > ${{ github.workspace }}/gitignore_global + git config --global core.excludesFile ${{ github.workspace }}/gitignore_global - name: Check previous release for SHA run: | echo "PREVIOUS_TAG=$(gh release view --json tagName --jq .tagName --repo pulumi/pulumi-terraform-provider)" >> $GITHUB_ENV diff --git a/.goreleaser.yml b/.goreleaser.yml index 9a8813a..0c4452c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -28,7 +28,10 @@ snapshot: # changelog: { disable: true } # We pass GoReleaser a CHANGELOG to use release: extra_files: - - glob: ../release_sha.txt # We need release_sha to generate accurate changelogs + # We need release_sha to generate accurate changelogs + # + # This file is generated as part of the release process. + - glob: release_sha.txt github: owner: pulumi name: pulumi-terraform-provider