From 7bb01c08d74bc23340d637e8cdcdb97eeea1d020 Mon Sep 17 00:00:00 2001 From: Mengxin Zhu Date: Mon, 13 Sep 2021 06:20:59 +0000 Subject: [PATCH] chore: update the token of deps upgrade --- .github/workflows/upgrade.yml | 3 ++- .projenrc.js | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upgrade.yml b/.github/workflows/upgrade.yml index 9b6567cf..cbfde47f 100644 --- a/.github/workflows/upgrade.yml +++ b/.github/workflows/upgrade.yml @@ -55,7 +55,7 @@ jobs: id: create-pr uses: peter-evans/create-pull-request@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PROJEN_GITHUB_TOKEN }} commit-message: >- chore(deps): upgrade dependencies @@ -72,6 +72,7 @@ jobs: *Automatically created by projen via the "upgrade" workflow* branch: github-actions/upgrade title: "chore(deps): upgrade dependencies" + labels: auto-approve,auto-merge body: >- Upgrades project dependencies. See details in [workflow run]. diff --git a/.projenrc.js b/.projenrc.js index 99dff9a1..83dc4a0a 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -1,4 +1,4 @@ -const { AwsCdkTypeScriptApp, web } = require('projen'); +const { AwsCdkTypeScriptApp, DependenciesUpgradeMechanism, web } = require('projen'); const tsExcludeConfig = { compilerOptions: { @@ -178,6 +178,12 @@ const project = new AwsCdkTypeScriptApp({ // sampleCode: true, /* Generate one-time sample in `src/` and `test/` if there are no files there. */ tsconfig: tsExcludeConfig /* Custom TSConfig. */, // typescriptVersion: '^3.9.5', /* TypeScript version to use. */ + depsUpgrade: DependenciesUpgradeMechanism.githubWorkflow({ + workflowOptions: { + labels: ['auto-approve', 'auto-merge'], + secret: 'PROJEN_GITHUB_TOKEN', + }, + }), }); project.addTask('deploy-to-default-vpc', {