Skip to content

Commit 254d1dd

Browse files
hakenmtMichael Haken
and
Michael Haken
authored
chore: update workflow (#36)
Co-authored-by: Michael Haken <[email protected]>
1 parent a8e2b77 commit 254d1dd

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.github/workflows/auto-approve.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/release.yml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.mergify.yml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

+11-8
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ const project = new CdklabsConstructLibrary ({
2626
mergeQueue: true
2727
},
2828
autoMerge: true,
29+
autoMergeOptions: {
30+
approvedReviews: 0
31+
},
2932
autoApproveUpgrades: true,
3033
autoApproveOptions: {
31-
allowedUsernames: ['cdklabs-automation', "hakenmt"],
34+
allowedUsernames: ['cdklabs-automation', "hakenmt", "github-bot"]
3235
},
3336
eslint: false,
3437
eslintOptions: {
@@ -254,18 +257,18 @@ project.tasks.tryFind('release')?.updateStep(4, {
254257
exec: "git diff --ignore-space-at-eol --exit-code ':!tsconfig.json'",
255258
});
256259

257-
/*project.addFields({
258-
version: '0.0.1-alpha.1',
259-
});*/
260-
261260
project.github
262261
?.tryFindWorkflow('release')
263262
?.file?.patch(JsonPatch.remove('/jobs/release_pypi/steps/1'));
264-
project.github
263+
project.github
265264
?.tryFindWorkflow('release')
266-
?.file?.patch(JsonPatch.add('/jobs/release_maven/steps/2', {"name": " Install gpg-agent", "run": "sudo dnf install --allowerasing gnupg2"}));
265+
?.file?.patch(JsonPatch.add('/jobs/release_maven/steps/2', {"name": 'Install gpg-agent', "run": 'dnf install --assumeyes --allowerasing gnupg2'}));
266+
267+
project.github
268+
?.tryFindWorkflow('auto-approve')
269+
?.file?.patch(JsonPatch.replace('/jobs/approve/if', "contains(github.event.pull_request.labels.*.name, 'auto-approve') && (github.event.pull_request.user.login == 'cdklabs-automation' || github.event.pull_request.user.login == 'hakenmt' || github.event.pull_request.user.login == 'dependabot[bot]')"));
267270

268271
project.github
269272
?.tryFindWorkflow('build')
270273
?.file?.patch(JsonPatch.remove('/jobs/package-python/steps/1'));
271-
project.synth();
274+
project.synth();

0 commit comments

Comments
 (0)