Skip to content

Commit

Permalink
chore: update workflow (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Haken <[email protected]>
  • Loading branch information
hakenmt and Michael Haken authored Dec 17, 2024
1 parent a8e2b77 commit 254d1dd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .mergify.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 11 additions & 8 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ const project = new CdklabsConstructLibrary ({
mergeQueue: true
},
autoMerge: true,
autoMergeOptions: {
approvedReviews: 0
},
autoApproveUpgrades: true,
autoApproveOptions: {
allowedUsernames: ['cdklabs-automation', "hakenmt"],
allowedUsernames: ['cdklabs-automation', "hakenmt", "github-bot"]
},
eslint: false,
eslintOptions: {
Expand Down Expand Up @@ -254,18 +257,18 @@ project.tasks.tryFind('release')?.updateStep(4, {
exec: "git diff --ignore-space-at-eol --exit-code ':!tsconfig.json'",
});

/*project.addFields({
version: '0.0.1-alpha.1',
});*/

project.github
?.tryFindWorkflow('release')
?.file?.patch(JsonPatch.remove('/jobs/release_pypi/steps/1'));
project.github
project.github
?.tryFindWorkflow('release')
?.file?.patch(JsonPatch.add('/jobs/release_maven/steps/2', {"name": " Install gpg-agent", "run": "sudo dnf install --allowerasing gnupg2"}));
?.file?.patch(JsonPatch.add('/jobs/release_maven/steps/2', {"name": 'Install gpg-agent', "run": 'dnf install --assumeyes --allowerasing gnupg2'}));

project.github
?.tryFindWorkflow('auto-approve')
?.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]')"));

project.github
?.tryFindWorkflow('build')
?.file?.patch(JsonPatch.remove('/jobs/package-python/steps/1'));
project.synth();
project.synth();

0 comments on commit 254d1dd

Please sign in to comment.