This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 19c542b12a65e3f3ec1d8213111262a9887dcda0.
137 lines
4.9 KiB
YAML
137 lines
4.9 KiB
YAML
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
|
|
|
|
name: weekly-pulumi-update
|
|
on:
|
|
schedule:
|
|
- cron: 35 12 * * 4
|
|
workflow_dispatch: {}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
|
|
PROVIDER: docker-build
|
|
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
|
TRAVIS_OS_NAME: linux
|
|
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
|
GOVERSION: "1.21.x"
|
|
NODEVERSION: "20.x"
|
|
PYTHONVERSION: "3.11.8"
|
|
DOTNETVERSION: "8.0.x"
|
|
JAVAVERSION: "11"
|
|
ARM_CLIENT_ID: 30e520fa-12b4-4e21-b473-9426c5ac2e1e
|
|
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
|
|
ARM_SUBSCRIPTION_ID: 0282681f-7a9e-424b-80b2-96babd57a8a1
|
|
ARM_TENANT_ID: 706143bc-e1d4-4593-aee2-c9dc60ab9be7
|
|
AWS_REGION: us-west-2
|
|
AZURE_LOCATION: westus
|
|
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
|
|
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
|
GOOGLE_CI_SERVICE_ACCOUNT_EMAIL: pulumi-ci@pulumi-ci-gcp-provider.iam.gserviceaccount.com
|
|
GOOGLE_CI_WORKLOAD_IDENTITY_POOL: pulumi-ci
|
|
GOOGLE_CI_WORKLOAD_IDENTITY_PROVIDER: pulumi-ci
|
|
GOOGLE_PROJECT: pulumi-ci-gcp-provider
|
|
GOOGLE_PROJECT_NUMBER: "895284651812"
|
|
GOOGLE_REGION: us-central1
|
|
GOOGLE_ZONE: us-central1-a
|
|
PULUMI_API: https://api.pulumi-staging.io
|
|
jobs:
|
|
weekly-pulumi-update:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
lfs: true
|
|
- name: Install Go
|
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
|
with:
|
|
go-version: ${{ env.GOVERSION }}
|
|
cache-dependency-path: "**/*.sum"
|
|
- name: Install pulumictl
|
|
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
|
|
with:
|
|
repo: pulumi/pulumictl
|
|
- name: Install Pulumi CLI
|
|
uses: pulumi/actions@df5a93ad715135263c732ba288301bd044c383c0 # v6.3.0
|
|
- name: Setup DotNet
|
|
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
|
|
with:
|
|
dotnet-version: ${{ env.DOTNETVERSION }}
|
|
- name: Setup Node
|
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
with:
|
|
node-version: ${{ env.NODEVERSION }}
|
|
registry-url: https://registry.npmjs.org
|
|
- name: Setup Python
|
|
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
with:
|
|
python-version: ${{ env.PYTHONVERSION }}
|
|
- name: Setup Java
|
|
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
|
|
with:
|
|
java-version: ${{ env.JAVAVERSION }}
|
|
distribution: temurin
|
|
cache: gradle
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@017a9effdb900e5b5b2fddfb590a105619dca3c3 # v4.4.2
|
|
with:
|
|
gradle-version: "7.6"
|
|
- name: Update Pulumi/Pulumi
|
|
id: gomod
|
|
run: >-
|
|
git config --local user.email 'bot@pulumi.com'
|
|
|
|
git config --local user.name 'pulumi-bot'
|
|
|
|
git checkout -b update-pulumi/${{ github.run_id }}-${{ github.run_number }}
|
|
|
|
find . -name go.mod -execdir sh -c 'go get github.com/pulumi/pulumi/pkg/v3 github.com/pulumi/pulumi/sdk/v3; go mod tidy' \;
|
|
|
|
gh repo view pulumi/pulumi --json latestRelease --jq .latestRelease.tagName | sed 's/^v//' > .pulumi.version
|
|
|
|
git update-index -q --refresh
|
|
|
|
if ! git diff-files --quiet; then echo changes=1 >> "$GITHUB_OUTPUT"; fi
|
|
- name: Provider with Pulumi Upgrade
|
|
if: steps.gomod.outputs.changes != 0
|
|
run: >-
|
|
make codegen && make local_generate
|
|
|
|
git add sdk/nodejs
|
|
|
|
git commit -m "Regenerating Node.js SDK based on updated modules" || echo "ignore commit failure, may be empty"
|
|
|
|
git add sdk/python
|
|
|
|
git commit -m "Regenerating Python SDK based on updated modules" || echo "ignore commit failure, may be empty"
|
|
|
|
git add sdk/dotnet
|
|
|
|
git commit -m "Regenerating .NET SDK based on updated modules" || echo "ignore commit failure, may be empty"
|
|
|
|
git add sdk/go*
|
|
|
|
git commit -m "Regenerating Go SDK based on updated modules" || echo "ignore commit failure, may be empty"
|
|
|
|
git add sdk/java*
|
|
|
|
git commit -m "Regenerating Java SDK based on updated modules" || echo "ignore commit failure, may be empty"
|
|
|
|
git add .
|
|
|
|
git commit -m "Updated modules" || echo "ignore commit failure, may be empty"
|
|
|
|
git push origin update-pulumi/${{ github.run_id }}-${{ github.run_number }}
|
|
- name: Create PR
|
|
id: create-pr
|
|
if: steps.gomod.outputs.changes != 0
|
|
run: >
|
|
ver=$(cat .pulumi.version)
|
|
|
|
msg="Automated upgrade: bump pulumi/pulumi to ${ver}"
|
|
|
|
# See https://github.com/cli/cli/issues/6485#issuecomment-2560935183 for --head workaround
|
|
|
|
gh pr create -t "$msg" -b "$msg" --head "$(git branch --show-current)"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
|
|
name: weekly-pulumi-update
|