Skip to content

Commit

Permalink
pass caller name instead
Browse files Browse the repository at this point in the history
  • Loading branch information
angusbayley committed Jan 22, 2025
1 parent 4170321 commit 2051b5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release-final.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2051b5e

Please sign in to comment.