diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15130c9..022ecbb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,10 +34,11 @@ jobs: git diff --staged --patch --exit-code > .repo.patch || echo "self_mutation_happened=true" >> $GITHUB_OUTPUT - name: Upload patch if: steps.self_mutation.outputs.self_mutation_happened - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.3 with: name: .repo.patch path: .repo.patch + include-hidden-files: true - name: Fail build on mutation if: steps.self_mutation.outputs.self_mutation_happened run: |- @@ -48,10 +49,11 @@ jobs: run: cd dist && getfacl -R . > permissions-backup.acl continue-on-error: true - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.3 with: name: build-artifact path: dist + include-hidden-files: true self-mutation: needs: build runs-on: ubuntu-latest @@ -66,7 +68,7 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Download patch - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: .repo.patch path: ${{ runner.temp }} @@ -93,7 +95,7 @@ jobs: with: node-version: 18.x - name: Download build artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: build-artifact path: dist @@ -121,7 +123,7 @@ jobs: with: python-version: 3.x - name: Download build artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: build-artifact path: dist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e17e382..cf426fa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,10 +41,11 @@ jobs: continue-on-error: true - name: Upload artifact if: ${{ steps.git_remote.outputs.latest_commit == github.sha }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.4.3 with: name: build-artifact path: dist + include-hidden-files: true release_github: name: Publish to GitHub Releases needs: release @@ -57,7 +58,7 @@ jobs: with: node-version: 18.x - name: Download build artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: build-artifact path: dist @@ -86,7 +87,7 @@ jobs: with: node-version: 18.x - name: Download build artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: build-artifact path: dist @@ -122,7 +123,7 @@ jobs: with: python-version: 3.x - name: Download build artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4.1.8 with: name: build-artifact path: dist diff --git a/.projenrc.js b/.projenrc.js index b297fd9..4c913de 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -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'; @@ -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/download-artifact@v4.1.8'); +project.github.actions.set('actions/upload-artifact', 'actions/upload-artifact@v4.4.3'); + +// 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();