From 2051b5e543bd693839db429d54a5d14b4f135ff7 Mon Sep 17 00:00:00 2001 From: Angus Bayley Date: Wed, 22 Jan 2025 13:49:06 +0000 Subject: [PATCH] pass caller name instead --- .github/workflows/release-final.yml | 11 +++++++++-- .github/workflows/release-prepare.yml | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-final.yml b/.github/workflows/release-final.yml index 36ca227401f..3ce88e3352a 100644 --- a/.github/workflows/release-final.yml +++ b/.github/workflows/release-final.yml @@ -7,6 +7,10 @@ on: description: "the ref (branch) to release from" required: false default: main + caller: + type: string + description: "the workflow that called this one" + required: false workflow_dispatch: inputs: app: @@ -75,13 +79,16 @@ jobs: - name: echo event name run: | echo "event_name=${{ github.event_name }}" + - name: echo caller input + run: | + echo "inputs.caller=${{ inputs.caller }}" - name: check if desktop versions are different - if: ${{ github.event_name == 'workflow_call' }} + if: ${{ inputs.caller == 'release-prepare' }} id: desktop-changed run: | echo "status=$(git diff HEAD HEAD~1 ./apps/ledger-live-desktop/package.json | grep '"version": "' | wc -l)" >> $GITHUB_OUTPUT - name: check if mobile versions are different - if: ${{ github.event_name == 'workflow_call' }} + if: ${{ inputs.caller == 'release-prepare' }} id: mobile-changed run: | echo "status=$(git diff HEAD HEAD~1 ./apps/ledger-live-mobile/package.json | grep '"version": "' | wc -l)" >> $GITHUB_OUTPUT diff --git a/.github/workflows/release-prepare.yml b/.github/workflows/release-prepare.yml index 546ea491e31..c4f221ab900 100644 --- a/.github/workflows/release-prepare.yml +++ b/.github/workflows/release-prepare.yml @@ -82,4 +82,5 @@ jobs: uses: LedgerHQ/ledger-live/.github/workflows/release-final.yml@support/fix-release-workflow-chaining-test with: ref: main + caller: release-prepare secrets: inherit \ No newline at end of file