From 459112f5b8e424f88b5a975c8d2592926f36936a Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Mon, 27 Apr 2026 13:00:47 +0200 Subject: [PATCH] Fix release workflow "workflow_call" is not a event name --- .github/workflows/appimage.yml | 7 +++++-- .github/workflows/draft-release.yml | 2 +- .github/workflows/mac-dmg-x64.yml | 5 ++++- .github/workflows/mac-dmg.yml | 5 ++++- .github/workflows/win-exe.yml | 5 ++++- 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/appimage.yml b/.github/workflows/appimage.yml index 1c209c301..8bc12fcb4 100644 --- a/.github/workflows/appimage.yml +++ b/.github/workflows/appimage.yml @@ -17,6 +17,9 @@ on: type: string description: 'The suffix of the version, including dash' required: true + upload-to-draft: + type: boolean + default: true outputs: sha256-appimage-x64: description: "SHA256 sum of the x64 appimage" @@ -216,7 +219,7 @@ jobs: cryptomator-*.asc if-no-files-found: error - name: Publish AppImage on GitHub Releases - if: github.event_name == 'workflow_call' + if: inputs.upload-to-draft uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1 with: draft: true @@ -231,7 +234,7 @@ jobs: name: Collect AppImage checksums runs-on: ubuntu-latest needs: [build] - if: github.event_name == 'workflow_call' + if: inputs.upload-to-draft outputs: x64-sha256sum: ${{ steps.sha256sum.outputs.x64-sha256sum }} aarch64-sha256sum: ${{ steps.sha256sum.outputs.aarch64-sha256sum }} diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 0442af4ff..57a93b7d9 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -127,7 +127,7 @@ jobs: CURRENT_BODY=$(gh release view "${TAG}" --json body --jq .body) RELEASE_BODY=$(printf '%s\n' "${CURRENT_BODY}" | sed '//,//c\ \ - > [!SUCCESS]\ + > [!NOTE]\ > Release artifacts finished building successfully.\ >\ > SHA-256 checksums have been updated below.\ diff --git a/.github/workflows/mac-dmg-x64.yml b/.github/workflows/mac-dmg-x64.yml index a3ed97967..550be16a8 100644 --- a/.github/workflows/mac-dmg-x64.yml +++ b/.github/workflows/mac-dmg-x64.yml @@ -29,6 +29,9 @@ on: description: 'Notarize' default: true type: boolean + upload-to-draft: + type: boolean + default: true outputs: sha256-dmg: description: "SHA256 sum of the x64 dmg" @@ -308,7 +311,7 @@ jobs: Cryptomator-*.asc if-no-files-found: error - name: Publish dmg on GitHub Releases - if: github.event_name == 'workflow_call' + if: inputs.upload-to-draft uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1 with: draft: true diff --git a/.github/workflows/mac-dmg.yml b/.github/workflows/mac-dmg.yml index 0d9fb9f29..683e5ab76 100644 --- a/.github/workflows/mac-dmg.yml +++ b/.github/workflows/mac-dmg.yml @@ -21,6 +21,9 @@ on: description: 'Notarize' default: true type: boolean + upload-to-draft: + type: boolean + default: true outputs: sha256-dmg: description: "SHA256 sum of the arm64 dmg" @@ -307,7 +310,7 @@ jobs: Cryptomator-*.asc if-no-files-found: error - name: Publish dmg on GitHub Releases - if: github.event_name == 'workflow_call' + if: inputs.upload-to-draft uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1 with: draft: true diff --git a/.github/workflows/win-exe.yml b/.github/workflows/win-exe.yml index 0f1b16b3f..b8fd9ee02 100644 --- a/.github/workflows/win-exe.yml +++ b/.github/workflows/win-exe.yml @@ -21,6 +21,9 @@ on: description: 'Sign binaries' default: true type: boolean + upload-to-draft: + type: boolean + default: true outputs: sha256-msi: description: "SHA256 sum of the x64 msi" @@ -448,7 +451,7 @@ jobs: publish: name: Publish installers to the github release - if: github.event_name == 'workflow_call' + if: inputs.upload-to-draft runs-on: ubuntu-latest needs: [ build-msi, build-exe ] steps: