From 7d49d0f772fc81a708515f5c2cc65df9524edab6 Mon Sep 17 00:00:00 2001 From: Miguel Martinez Date: Fri, 14 Nov 2025 14:51:06 +0100 Subject: [PATCH 1/2] chore(ci): automatically rename version Signed-off-by: Miguel Martinez --- .github/workflows/release.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 68e411ebd..671187747 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,7 +25,8 @@ jobs: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Install Chainloop run: | - curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s + # Need the ee CLI to have access to project management capabilities + curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s -- --ee - name: Initialize Attestation id: init_attestation @@ -166,6 +167,12 @@ jobs: - name: Bump Project Version run: .github/workflows/utils/bump-project-version.sh ${{ github.ref_name }} + - name: Promote Chainloop Project Version + run: | + current_version="$(cat .chainloop.yml | awk '/^projectVersion:/ {print $2}')" + # Rename the existing pre-release into the actual release name + chainloop project version update --project ${CHAINLOOP_PROJECT_NAME} --name $current_version --new-name ${{ github.ref_name }} || true + - name: Create Pull Request uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2 with: From 52805c9cfe72d8b7ecfb6b691e863d1990dc804a Mon Sep 17 00:00:00 2001 From: Miguel Martinez Date: Fri, 14 Nov 2025 15:02:42 +0100 Subject: [PATCH 2/2] chore(ci): automatically rename version Signed-off-by: Miguel Martinez --- .github/workflows/release.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 671187747..d1d0a51ec 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -162,17 +162,17 @@ jobs: gh release download ${{ github.ref_name }} -A tar.gz -O /tmp/source-code.tar.gz chainloop attestation add --name source-code --value /tmp/source-code.tar.gz --kind ARTIFACT --attestation-id ${{ env.ATTESTATION_ID }} - - name: Bump Chart and Dagger Version - run: .github/workflows/utils/bump-chart-and-dagger-version.sh deployment/chainloop extras/dagger ${{ github.ref_name }} - - name: Bump Project Version - run: .github/workflows/utils/bump-project-version.sh ${{ github.ref_name }} - - name: Promote Chainloop Project Version run: | current_version="$(cat .chainloop.yml | awk '/^projectVersion:/ {print $2}')" # Rename the existing pre-release into the actual release name chainloop project version update --project ${CHAINLOOP_PROJECT_NAME} --name $current_version --new-name ${{ github.ref_name }} || true + - name: Bump Chart and Dagger Version + run: .github/workflows/utils/bump-chart-and-dagger-version.sh deployment/chainloop extras/dagger ${{ github.ref_name }} + - name: Bump Project Version + run: .github/workflows/utils/bump-project-version.sh ${{ github.ref_name }} + - name: Create Pull Request uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2 with: