Skip to content

update-templates

update-templates #184

name: Upgrade Templates
on:
workflow_dispatch: {}
repository_dispatch:
types:
- update-templates
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
jobs:
build:
name: Update Templates
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Update Template Versions
run: |
cd generator
./generate-go-mod.sh
- name: Prepare git branch
run: |
git config --local user.email "[email protected]"
git config --local user.name "pulumi-bot"
git checkout -b templates/${{ github.run_id }}-${{ github.run_number }}
git add .
git commit -m "Update Go template dependencies to their latest versions"
git push origin templates/${{ github.run_id }}-${{ github.run_number }}
- name: pull-request
uses: repo-sync/pull-request@v2
with:
source_branch: "templates/${{ github.run_id }}-${{ github.run_number }}"
destination_branch: "master"
pr_title: "Update Go template dependencies to their latest versions"
pr_body: "This PR was generated automatically, most likely in response to a [pulumi/pulumi release](https://github.com/pulumi/pulumi/releases)."
github_token: ${{ secrets.PULUMI_BOT_TOKEN }}