Skip to content

Commit

Permalink
Update tauri.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 authored Dec 10, 2023
1 parent 30c18c5 commit 6e293a0
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,8 @@ jobs:
run: pnpm i
- name: Set environment variables
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
$BRANCH_NAME=$env:GITHUB_REF.Replace('refs/heads/', '')
$SHORT_SHA=$(git rev-parse --short HEAD)
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
echo "SHORT_SHA=$SHORT_SHA" >> $GITHUB_ENV
else
BRANCH_NAME=$(echo $GITHUB_REF | awk -F'/' '{print $3}')
SHORT_SHA=$(git rev-parse --short HEAD)
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
echo "SHORT_SHA=$SHORT_SHA" >> $GITHUB_ENV
fi
echo "BRANCH_NAME=${GITHUB_REF_NAME}" >> $GITHUB_ENV
echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 6e293a0

Please sign in to comment.