upgrade-projen #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~~ 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 |