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 authored Feb 7, 2022
1 parent bfa1c6e commit 9012a3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/update-bridge.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ env:
PROVIDER: snowflake
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 }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
Expand All @@ -17,6 +18,7 @@ env:
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
TRAVIS_OS_NAME: linux
UPSTREAM_PROVIDER_MAJOR_VERSION: ""
UPSTREAM_PROVIDER_ORG: chanzuckerberg
UPSTREAM_PROVIDER_REPO: terraform-provider-snowflake
jobs:
Expand Down Expand Up @@ -58,12 +60,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

0 comments on commit 9012a3c

Please sign in to comment.