-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (51 loc) · 2.17 KB
/
upgrade-projen.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
name: upgrade-projen
on:
schedule:
- cron: 13 2 10 */2 *
workflow_dispatch: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
upgrade:
name: Upgrade Projen
runs-on: ubuntu-latest
permissions:
contents: read
env:
CI: "true"
CHECKPOINT_DISABLE: "1"
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup Terraform
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd
with:
terraform_wrapper: false
- name: Setup Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
- name: Install
run: yarn install
- name: Get latest Projen version
id: latest_version
run: |-
NEW_VERSION=$(yarn info projen --json | jq -r '.data.version')
NEW_VERSION_SHORT=$(cut -d "." -f 1,2 <<< "$NEW_VERSION")
echo "value=$NEW_VERSION" >> $GITHUB_OUTPUT
echo "short=$NEW_VERSION_SHORT" >> $GITHUB_OUTPUT
- name: Run upgrade script
run: scripts/update-projen.sh ${{ steps.latest_version.outputs.value }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f
with:
commit-message: "chore(deps)!: increase minimum required version of Projen to ${{ steps.latest_version.outputs.short }}"
branch: auto/upgrade-projen-${{ steps.latest_version.outputs.short }}
base: main
title: "chore(deps)!: increase minimum required version of Projen to ${{ steps.latest_version.outputs.short }}"
body: This PR increases the version of Projen to `>= ${{ steps.latest_version.outputs.value }}`, which is currently the latest version available. This script runs once per month.
labels: auto-approve,automerge,automated
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
author: team-tf-cdk <[email protected]>
committer: team-tf-cdk <[email protected]>
signoff: true
delete-branch: true