Skip to content

Commit

Permalink
Merge pull request #205 from keenangraham/try-bump-download-artifact
Browse files Browse the repository at this point in the history
fix: upload-artifact breaking change
  • Loading branch information
andskli authored Jan 7, 2025
2 parents 40baccc + 5c8758e commit 9375c38
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml

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

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

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

13 changes: 12 additions & 1 deletion .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { awscdk } = require('projen');
const { awscdk, JsonPatch } = require('projen');
const { DependabotScheduleInterval } = require('projen/lib/github');

const PROJECT_NAME = 'cdk-eks-karpenter';
Expand Down Expand Up @@ -63,4 +63,15 @@ project.addTask('test:synth', {
exec: 'npx cdk synth -a "npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/integ.karpenter.ts"',
});

project.github.actions.set('actions/download-artifact', 'actions/[email protected]');
project.github.actions.set('actions/upload-artifact', 'actions/[email protected]');

// https://github.com/actions/upload-artifact/issues/602
build_workflow = project.tryFindObjectFile('.github/workflows/build.yml');
build_workflow.patch(JsonPatch.add('/jobs/build/steps/5/with/include-hidden-files', true));
build_workflow.patch(JsonPatch.add('/jobs/build/steps/8/with/include-hidden-files', true));

release_workflow = project.tryFindObjectFile('.github/workflows/release.yml');
release_workflow.patch(JsonPatch.add('/jobs/release/steps/7/with/include-hidden-files', true));

project.synth();

0 comments on commit 9375c38

Please sign in to comment.