Skip to content

Commit

Permalink
with env
Browse files Browse the repository at this point in the history
  • Loading branch information
vasfvitor committed Oct 28, 2023
1 parent 7e6f491 commit a7bb807
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/trigger-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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}}
Expand Down

0 comments on commit a7bb807

Please sign in to comment.