From bebf2f0f0233f4938fd826d7e6183975bc169b57 Mon Sep 17 00:00:00 2001 From: Costas Papastathis Date: Fri, 22 Nov 2024 16:47:34 +0200 Subject: [PATCH] fix: Minor fixes for create release and push image workflow (#115) * excluding test-pull-request workflow * fix: proper name for pushing the image * fix: checking out repo to increment tag properly --- .github/.syncignore | 3 ++- .github/workflows/create-release.yml | 5 +++++ .github/workflows/push-image.yml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/.syncignore b/.github/.syncignore index c03a7a5..d1c1e22 100644 --- a/.github/.syncignore +++ b/.github/.syncignore @@ -1,3 +1,4 @@ CODEOWNERS workflows/create-release.yml -workflows/push-image.yml \ No newline at end of file +workflows/push-image.yml +/workflows/test-pull-request.yml \ No newline at end of file diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 074f6d3..c35977b 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -599,6 +599,11 @@ jobs: stacks: ${{ fromJSON(needs.preparation.outputs.stacks) }} arch: ${{ fromJSON(needs.preparation.outputs.architectures) }} steps: + - name: Checkout With History + uses: actions/checkout@v4 + with: + fetch-depth: 0 # gets full history + - name: Download Current Receipt(s) uses: actions/download-artifact@v4 with: diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index 145ee79..c1d47e8 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -49,7 +49,7 @@ jobs: run: | # Strip off the org and slash from repo name # paketo-buildpacks/repo-name --> repo-name - echo "repo_name=$(echo "${{ github.repository }}" | sed 's/^.*\///')" >> "$GITHUB_OUTPUT" + echo "repo_name=$(echo "${{ github.repository }}" | sed 's/^.*\///' | sed 's/\-stack$//')" >> "$GITHUB_OUTPUT" - name: Set matrix id: set-matrix