Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Yuwei Ba <[email protected]>
  • Loading branch information
ibigbug authored Nov 7, 2024
1 parent 8a504a1 commit 76833dc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,18 @@ jobs:
version: "23.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Set environment variables
- name: Set environment variables (non Windows)
if: matrix.os != 'windows-latest'
run: |
echo "CLASH_GIT_REF=${GITHUB_REF}" >> $GITHUB_ENV
echo "CLASH_GIT_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
- name: Set environment variables (Windows)
if: matrix.os == 'windows-latest'
run: |
echo "CLASH_GIT_REF=${GITHUB_REF}" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "CLASH_GIT_SHA=${GITHUB_SHA}" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Cargo fmt
uses: clechasseur/rs-cargo@v2
with:
Expand Down

0 comments on commit 76833dc

Please sign in to comment.