Skip to content

Commit 7621a8f

Browse files
authored
CI: Fix GIT_REF formatting in safety mutation workflow (#2070)
Replace string interpolation with format function for consistency and better readability. This ensures proper handling of default branch references in the workflow.
1 parent cc6fca8 commit 7621a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
runs-on: ${{ github.repository == 'commaai/opendbc' && 'namespace-profile-amd64-8x16' || 'ubuntu-latest' }}
9595
timeout-minutes: 20
9696
env:
97-
GIT_REF: ${{ github.event_name == 'push' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}' && github.event.before || 'origin/${{ github.event.repository.default_branch }}' }}
97+
GIT_REF: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.event.before || format('origin/{0}', github.event.repository.default_branch) }}
9898
steps:
9999
- uses: actions/checkout@v4
100100
with:

0 commit comments

Comments
 (0)