diff --git a/.github/workflows/trigger-workflow.yml b/.github/workflows/trigger-workflow.yml index 8a29fd68361..607b5629225 100644 --- a/.github/workflows/trigger-workflow.yml +++ b/.github/workflows/trigger-workflow.yml @@ -26,7 +26,8 @@ jobs: runs-on: ubuntu-latest env: # Set a variable to handle the branch - CURRENT_BRANCH: ${{ github.event_name == 'workflow_dispatch' && inputs.tauriBranch || github.event.client_payload.ref }} + CURRENT_BRANCH: ${{ github.event_name == 'workflow_dispatch' && inputs.tauriBranch || 'origin/1.x' }} + # CURRENT_BRANCH: ${{ github.event_name == 'workflow_dispatch' && inputs.tauriBranch || github.event.client_payload.ref }} GITHUB_CONTEXT: ${{ toJson(github) }} steps: @@ -39,8 +40,10 @@ jobs: repository: vasfvitor/tauri # here sets the branch - # - ref: ${{ inputs.tauriBranch }} + ref: ${{ github.env.CURRENT_BRANCH }} + + # this works + #ref: ${{ inputs.tauriBranch }} # seems like no #ref: ${{github.event.inputs.tauriBranch}}