Skip to content

Commit

Permalink
Update GitHub Actions workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot committed Feb 7, 2022
1 parent b6eb72d commit aa03c35
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -337,6 +337,13 @@ jobs:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
version: latest
- if: failure() && github.event_name == 'push'
name: Notify Slack
uses: 8398a7/action-slack@v3
with:
author_name: Failure in publishing binaries
fields: repo,commit,author,action
status: ${{ job.status }}
strategy:
fail-fast: true
matrix:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/master.yml
Expand Up @@ -337,6 +337,13 @@ jobs:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
version: latest
- if: failure() && github.event_name == 'push'
name: Notify Slack
uses: 8398a7/action-slack@v3
with:
author_name: Failure in publishing binaries
fields: repo,commit,author,action
status: ${{ job.status }}
strategy:
fail-fast: true
matrix:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/prerelease.yml
Expand Up @@ -283,6 +283,13 @@ jobs:
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout
60m0s
version: latest
- if: failure() && github.event_name == 'push'
name: Notify Slack
uses: 8398a7/action-slack@v3
with:
author_name: Failure in publishing binaries
fields: repo,commit,author,action
status: ${{ job.status }}
strategy:
fail-fast: true
matrix:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -295,6 +295,13 @@ jobs:
with:
args: -p 3 release --rm-dist --timeout 60m0s
version: latest
- if: failure() && github.event_name == 'push'
name: Notify Slack
uses: 8398a7/action-slack@v3
with:
author_name: Failure in publishing binaries
fields: repo,commit,author,action
status: ${{ job.status }}
strategy:
fail-fast: true
matrix:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-bridge.yml
@@ -1,5 +1,7 @@
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULUMI_EXTRA_MAPPING_ERROR: false
PULUMI_MISSING_MAPPING_ERROR: false
jobs:
update_bridge:
name: update-bridge
Expand Down Expand Up @@ -70,6 +72,7 @@ jobs:
- 14.x
pythonversion:
- "3.7"
name: Update pulumi-terraform-bridge
"on":
workflow_dispatch:
inputs:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/update-upstream-provider.yml
Expand Up @@ -7,12 +7,14 @@ env:
PROVIDER: digitalocean
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
PULUMI_API: https://api.pulumi-staging.io
PULUMI_EXTRA_MAPPING_ERROR: true
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
PULUMI_PROVIDER_MAP_ERROR: true
PULUMI_MISSING_MAPPING_ERROR: true
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TRAVIS_OS_NAME: linux
UPSTREAM_PROVIDER_MAJOR_VERSION: ""
UPSTREAM_PROVIDER_ORG: pulumi
UPSTREAM_PROVIDER_REPO: terraform-provider-digitalocean
jobs:
Expand Down Expand Up @@ -54,12 +56,12 @@ jobs:
- if: ${{ hashFiles('provider/shim/go.mod') != '' }}
name: Update shim/go.mod
run: cd provider/shim && go mod edit -require github.com/${{ env.UPSTREAM_PROVIDER_ORG
}}/${{ env.UPSTREAM_PROVIDER_REPO }}@${{ env.UPSTREAM_PROVIDER_SHA }} && go
mod tidy
}}/${{ env.UPSTREAM_PROVIDER_REPO }}${{ env.UPSTREAM_PROVIDER_MAJOR_VERSION
}}@${{ env.UPSTREAM_PROVIDER_SHA }} && go mod tidy
- name: Update go.mod
run: cd provider && go mod edit -require github.com/${{ env.UPSTREAM_PROVIDER_ORG
}}/${{ env.UPSTREAM_PROVIDER_REPO }}@${{ env.UPSTREAM_PROVIDER_SHA }} && go
mod tidy
}}/${{ env.UPSTREAM_PROVIDER_REPO }}${{ env.UPSTREAM_PROVIDER_MAJOR_VERSION
}}@${{ env.UPSTREAM_PROVIDER_SHA }} && go mod tidy
- run: make tfgen
- run: make build_sdks
- if: ${{ !github.event.inputs.linked_issue_number }}
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.prerelease.yml
Expand Up @@ -24,6 +24,7 @@ builds:
- darwin
- windows
- linux
ignore: []
ldflags:
- -X github.com/pulumi/pulumi-digitalocean/provider/v4/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-digitalocean/
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yml
Expand Up @@ -24,6 +24,7 @@ builds:
- darwin
- windows
- linux
ignore: []
ldflags:
- -X github.com/pulumi/pulumi-digitalocean/provider/v4/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-digitalocean/
Expand All @@ -32,6 +33,9 @@ changelog:
exclude:
- Merge branch
- Merge pull request
- '[internal]'
- '[ci]'
- '[chore]'
sort: asc
use: git
release:
Expand Down

0 comments on commit aa03c35

Please sign in to comment.