fix: conditionally use with: ref on actions/checkout (#4628)

This commit is contained in:
Nico Domino 2024-08-06 16:14:43 +02:00 committed by GitHub
parent 1eeebc3c28
commit 94014f6b25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,9 @@ jobs:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v4
if: ${{ github.event_name != 'workflow_dispatch' }}
- uses: actions/checkout@v4
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
ref: ${{ github.event.inputs.sha }}
- name: Install Tauri OS dependencies