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 a7bb807 commit bec11a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/trigger-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ jobs:
runs-on: ubuntu-latest
env:
# Set a variable to handle the branch
CURRENT_BRANCH: ${{ github.event_name == 'workflow_dispatch' && inputs.tauriBranch || 'origin/1.x' }}
DEFAULT_BRANCH: 1.x
CURRENT_BRANCH: ${{ github.event_name == 'workflow_dispatch' && inputs.tauriBranch || github.env.DEFAULT_BRANCH }}
# CURRENT_BRANCH: ${{ github.event_name == 'workflow_dispatch' && inputs.tauriBranch || github.event.client_payload.ref }}
GITHUB_CONTEXT: ${{ toJson(github) }}

steps:
- run: echo $GITHUB_CONTEXT
- run: echo $CURRENT_BRANCH
- run: echo $inputs.tauriBranch
- name: Checkout tauri
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
repository: vasfvitor/tauri
# here sets the branch
Expand Down

0 comments on commit bec11a4

Please sign in to comment.