Skip to content

Commit

Permalink
Update trigger-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vasfvitor committed Oct 28, 2023
1 parent 30c65aa commit 2a73fb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/trigger-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ jobs:
runs-on: ubuntu-latest
env:
# Set a variable to handle the branch
CURRENT_BRANCH: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tauriBranch || '/refs/heads/1.x' }}
CURRENT_BRANCH: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tauriBranch || github.event.client_payload.ref }}
GITHUB_CONTEXT: ${{ toJson(github) }}

steps:
- run: echo "$GITHUB_CONTEXT"
- run: echo $CURRENT_BRANCH
- name: Checkout tauri
uses: actions/checkout@v3
Expand Down

0 comments on commit 2a73fb7

Please sign in to comment.