From 1f1c3bec61e72be8b56cd1959d94b59dd8f8ce64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20Ayd=C4=B1n?= Date: Thu, 2 Jul 2026 15:29:00 +0300 Subject: [PATCH] fix(release-sdk-changesets): move secrets check GitHub Actions doesnt allow the `secrets` context in `if` expressions for reusable workflows. This caused a workflow parse error. --- .github/workflows/release-sdk-changesets.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-sdk-changesets.yml b/.github/workflows/release-sdk-changesets.yml index df0b483..09bf7b7 100644 --- a/.github/workflows/release-sdk-changesets.yml +++ b/.github/workflows/release-sdk-changesets.yml @@ -108,10 +108,13 @@ jobs: if: needs.determine-changesets-step.outputs.action == 'pr' && (inputs.runner-client-id != '' || inputs.runnerAppId != '') steps: - name: 'Validate runner app credentials' - if: ${{ secrets.RUNNER_APP_PRIVATE_KEY == '' }} + env: + RUNNER_APP_PRIVATE_KEY: ${{ secrets.RUNNER_APP_PRIVATE_KEY }} run: | - echo "Error: RUNNER_APP_PRIVATE_KEY secret must be provided when runner-client-id or runnerAppId is set" - exit 1 + if [ -z "$RUNNER_APP_PRIVATE_KEY" ]; then + echo "Error: RUNNER_APP_PRIVATE_KEY secret must be provided when runner-client-id or runnerAppId is set" + exit 1 + fi - name: 'Get token for the GitHub App' uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0