Skip to content

Commit

Permalink
build(ci): Update ci.yml (#643)
Browse files Browse the repository at this point in the history
* Update ci.yml

Signed-off-by: Yuwei Ba <[email protected]>

* Update ci.yml

Signed-off-by: Yuwei Ba <[email protected]>

---------

Signed-off-by: Yuwei Ba <[email protected]>
  • Loading branch information
ibigbug authored Nov 7, 2024
1 parent 8a504a1 commit e47771c
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=$env:GITHUB_REF" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "CLASH_GIT_SHA=$env:GITHUB_SHA" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Cargo fmt
uses: clechasseur/rs-cargo@v2
with:
Expand Down

0 comments on commit e47771c

Please sign in to comment.