From 787755ca1ac0ada82e00a67c4f9a1689fda5b2b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20T=C3=B3th?= Date: Thu, 20 Jun 2024 18:32:49 +0200 Subject: [PATCH] Fix version update request (#4463) - Initialize `VERSION` in the `notify-dependents` step - Remove the `version` output from the `macos-build` step - Remove the `macos-build` prerequisite from the `release` step --- .github/workflows/release.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa324c2d9e9..26d079f0994 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -218,7 +218,6 @@ jobs: ../kframework/package/macos/brew-update-to-final ${PACKAGE} ${VERSION} ${ROOT_URL} echo "path=${LOCAL_BOTTLE_NAME}" >> ${GITHUB_OUTPUT} echo "path_remote=${BOTTLE_NAME}" >> ${GITHUB_OUTPUT} - echo "version=${VERSION}" >> ${GITHUB_OUTPUT} - name: Upload bottle uses: actions/upload-artifact@v4 @@ -238,7 +237,6 @@ jobs: outputs: bottle_path: ${{ steps.build.outputs.path }} bottle_path_remote: ${{ steps.build.outputs.path_remote }} - version: ${{ steps.build.outputs.version }} macos-test: name: 'Test MacOS Package' @@ -353,7 +351,7 @@ jobs: name: 'Publish Release' runs-on: [self-hosted, linux, normal] environment: production - needs: [cachix-release, macos-build, macos-test, source-tarball, ubuntu-jammy, set-release-id] + needs: [cachix-release, macos-test, source-tarball, ubuntu-jammy, set-release-id] steps: - name: 'Check out code' uses: actions/checkout@v4 @@ -407,16 +405,19 @@ jobs: await github.rest.repos.updateRelease({ owner, repo, release_id: ${{ needs.set-release-id.outputs.release_id }}, prerelease: false }) notify-dependents: + name: 'Notify Dependents' runs-on: ubuntu-latest needs: release steps: + - name: Check out code + uses: actions/checkout@v4 + - name: 'Update dependents' env: GITHUB_TOKEN: ${{ secrets.JENKINS_GITHUB_PAT }} - VERSION: ${{ needs.macos-build.outputs.version }} run: | set -x - version=v"${VERSION}" + VERSION=$(cat package/version) curl --fail \ -X POST \ -H "Accept: application/vnd.github+json" \