Skip to content

Commit c1df630

Browse files
authored
Update GitHub Actions workflows.
1 parent 80094d0 commit c1df630

File tree

8 files changed

+43
-5
lines changed

8 files changed

+43
-5
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,13 @@ jobs:
336336
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
337337
60m0s
338338
version: latest
339+
- if: failure() && github.event_name == 'push'
340+
name: Notify Slack
341+
uses: 8398a7/action-slack@v3
342+
with:
343+
author_name: Failure in publishing binaries
344+
fields: repo,commit,author,action
345+
status: ${{ job.status }}
339346
strategy:
340347
fail-fast: true
341348
matrix:

.github/workflows/master.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,13 @@ jobs:
336336
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
337337
60m0s
338338
version: latest
339+
- if: failure() && github.event_name == 'push'
340+
name: Notify Slack
341+
uses: 8398a7/action-slack@v3
342+
with:
343+
author_name: Failure in publishing binaries
344+
fields: repo,commit,author,action
345+
status: ${{ job.status }}
339346
strategy:
340347
fail-fast: true
341348
matrix:

.github/workflows/prerelease.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,13 @@ jobs:
282282
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
283283
60m0s
284284
version: latest
285+
- if: failure() && github.event_name == 'push'
286+
name: Notify Slack
287+
uses: 8398a7/action-slack@v3
288+
with:
289+
author_name: Failure in publishing binaries
290+
fields: repo,commit,author,action
291+
status: ${{ job.status }}
285292
strategy:
286293
fail-fast: true
287294
matrix:

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,13 @@ jobs:
294294
with:
295295
args: -p 3 release --rm-dist --timeout 60m0s
296296
version: latest
297+
- if: failure() && github.event_name == 'push'
298+
name: Notify Slack
299+
uses: 8398a7/action-slack@v3
300+
with:
301+
author_name: Failure in publishing binaries
302+
fields: repo,commit,author,action
303+
status: ${{ job.status }}
297304
strategy:
298305
fail-fast: true
299306
matrix:

.github/workflows/update-bridge.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
env:
22
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3+
PULUMI_EXTRA_MAPPING_ERROR: false
4+
PULUMI_MISSING_MAPPING_ERROR: false
35
jobs:
46
update_bridge:
57
name: update-bridge
@@ -70,6 +72,7 @@ jobs:
7072
- 14.x
7173
pythonversion:
7274
- "3.7"
75+
name: Update pulumi-terraform-bridge
7376
"on":
7477
workflow_dispatch:
7578
inputs:

.github/workflows/update-upstream-provider.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ env:
66
PROVIDER: postgresql
77
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
88
PULUMI_API: https://api.pulumi-staging.io
9+
PULUMI_EXTRA_MAPPING_ERROR: true
910
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
1011
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
11-
PULUMI_PROVIDER_MAP_ERROR: true
12+
PULUMI_MISSING_MAPPING_ERROR: true
1213
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
1314
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
1415
TRAVIS_OS_NAME: linux
16+
UPSTREAM_PROVIDER_MAJOR_VERSION: ""
1517
UPSTREAM_PROVIDER_ORG: pulumi
1618
UPSTREAM_PROVIDER_REPO: terraform-provider-postgresql
1719
jobs:
@@ -53,12 +55,12 @@ jobs:
5355
- if: ${{ hashFiles('provider/shim/go.mod') != '' }}
5456
name: Update shim/go.mod
5557
run: cd provider/shim && go mod edit -require github.com/${{ env.UPSTREAM_PROVIDER_ORG
56-
}}/${{ env.UPSTREAM_PROVIDER_REPO }}@${{ env.UPSTREAM_PROVIDER_SHA }} && go
57-
mod tidy
58+
}}/${{ env.UPSTREAM_PROVIDER_REPO }}${{ env.UPSTREAM_PROVIDER_MAJOR_VERSION
59+
}}@${{ env.UPSTREAM_PROVIDER_SHA }} && go mod tidy
5860
- name: Update go.mod
5961
run: cd provider && go mod edit -require github.com/${{ env.UPSTREAM_PROVIDER_ORG
60-
}}/${{ env.UPSTREAM_PROVIDER_REPO }}@${{ env.UPSTREAM_PROVIDER_SHA }} && go
61-
mod tidy
62+
}}/${{ env.UPSTREAM_PROVIDER_REPO }}${{ env.UPSTREAM_PROVIDER_MAJOR_VERSION
63+
}}@${{ env.UPSTREAM_PROVIDER_SHA }} && go mod tidy
6264
- run: make tfgen
6365
- run: make build_sdks
6466
- if: ${{ !github.event.inputs.linked_issue_number }}

.goreleaser.prerelease.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ builds:
2424
- darwin
2525
- windows
2626
- linux
27+
ignore: []
2728
ldflags:
2829
- -X github.com/pulumi/pulumi-postgresql/provider/v3/pkg/version.Version={{.Tag}}
2930
main: ./cmd/pulumi-resource-postgresql/

.goreleaser.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ builds:
2424
- darwin
2525
- windows
2626
- linux
27+
ignore: []
2728
ldflags:
2829
- -X github.com/pulumi/pulumi-postgresql/provider/v3/pkg/version.Version={{.Tag}}
2930
main: ./cmd/pulumi-resource-postgresql/
@@ -32,6 +33,9 @@ changelog:
3233
exclude:
3334
- Merge branch
3435
- Merge pull request
36+
- '[internal]'
37+
- '[ci]'
38+
- '[chore]'
3539
sort: asc
3640
use: git
3741
release:

0 commit comments

Comments
 (0)