From 347215496f62936dd0eef2a07627fc5f65694ff1 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Wed, 2 Aug 2023 22:41:46 -0700 Subject: [PATCH] [internal] Update GitHub Actions workflow files (#250) --- .github/workflows/artifact-cleanup.yml | 15 --------------- .github/workflows/main.yml | 2 ++ .github/workflows/master.yml | 2 ++ .github/workflows/run-acceptance-tests.yml | 2 ++ .goreleaser.prerelease.yml | 4 ++++ .goreleaser.yml | 4 ++++ 6 files changed, 14 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/artifact-cleanup.yml diff --git a/.github/workflows/artifact-cleanup.yml b/.github/workflows/artifact-cleanup.yml deleted file mode 100644 index 63b7d5ab..00000000 --- a/.github/workflows/artifact-cleanup.yml +++ /dev/null @@ -1,15 +0,0 @@ -# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt - -jobs: - remove-old-artifacts: - runs-on: ubuntu-latest - steps: - - name: Remove old artifacts - uses: c-hive/gha-remove-artifacts@v1 - with: - age: 1 month - skip-tags: true -name: cleanup -on: - schedule: - - cron: 0 1 * * * diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a4ef9d59..d5cd0092 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -104,6 +104,7 @@ jobs: with: name: ${{ matrix.language }}-sdk.tar.gz path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz + retention-days: 30 - if: failure() && github.event_name == 'push' name: Notify Slack uses: 8398a7/action-slack@v3 @@ -268,6 +269,7 @@ jobs: with: name: ${{ env.PROVIDER }}-provider.tar.gz path: ${{ github.workspace }}/bin/provider.tar.gz + retention-days: 30 - if: failure() && github.event_name == 'push' name: Notify Slack uses: 8398a7/action-slack@v3 diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 5cec6894..9f7a7c07 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -104,6 +104,7 @@ jobs: with: name: ${{ matrix.language }}-sdk.tar.gz path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz + retention-days: 30 - if: failure() && github.event_name == 'push' name: Notify Slack uses: 8398a7/action-slack@v3 @@ -268,6 +269,7 @@ jobs: with: name: ${{ env.PROVIDER }}-provider.tar.gz path: ${{ github.workspace }}/bin/provider.tar.gz + retention-days: 30 - if: failure() && github.event_name == 'push' name: Notify Slack uses: 8398a7/action-slack@v3 diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index c486f2e9..2299253f 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -109,6 +109,7 @@ jobs: with: name: ${{ matrix.language }}-sdk.tar.gz path: ${{ github.workspace}}/sdk/${{ matrix.language }}.tar.gz + retention-days: 30 - if: failure() && github.event_name == 'push' name: Notify Slack uses: 8398a7/action-slack@v3 @@ -245,6 +246,7 @@ jobs: with: name: ${{ env.PROVIDER }}-provider.tar.gz path: ${{ github.workspace }}/bin/provider.tar.gz + retention-days: 30 - if: failure() && github.event_name == 'push' name: Notify Slack uses: 8398a7/action-slack@v3 diff --git a/.goreleaser.prerelease.yml b/.goreleaser.prerelease.yml index 42f6a837..9d6ae886 100644 --- a/.goreleaser.prerelease.yml +++ b/.goreleaser.prerelease.yml @@ -26,6 +26,10 @@ builds: - darwin - windows - linux + hooks: + post: + - env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -cache + - env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -modcache ignore: [] ldflags: - -X github.com/pulumi/pulumi-hcloud/provider/pkg/version.Version={{.Tag}} diff --git a/.goreleaser.yml b/.goreleaser.yml index f0ee393c..719d85d2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -26,6 +26,10 @@ builds: - darwin - windows - linux + hooks: + post: + - env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -cache + - env GOOS={{ .Os }} GOARCH={{ .Arch }} go clean -modcache ignore: [] ldflags: - -X github.com/pulumi/pulumi-hcloud/provider/pkg/version.Version={{.Tag}}