-
Notifications
You must be signed in to change notification settings - Fork 66
37 lines (35 loc) · 1.33 KB
/
update-templates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 }}