Skip to content

Commit

Permalink
Add correct git command to change dir
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbreeze413 committed Feb 2, 2024
1 parent 9cb809a commit eaa7599
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
export SOURCE_DIR=${PWD}/openfpga
echo "SOURCE_DIR=${SOURCE_DIR}" >> $GITHUB_ENV
#
export COMMIT_SHA1=$(git -c ${SOURCE_DIR} rev-parse --short HEAD)
export COMMIT_SHA1=$(git -C ${SOURCE_DIR} rev-parse --short HEAD)
echo "COMMIT_SHA1=${COMMIT_SHA1}" >> $GITHUB_ENV
printf "COMMIT_SHA1=${COMMIT_SHA1}"
#
Expand Down Expand Up @@ -240,14 +240,15 @@ jobs:

- name: Prebuild
run: |
export COMMIT_SHA1=$(git rev-parse --short HEAD)
echo "COMMIT_SHA1=${COMMIT_SHA1}" >> $GITHUB_ENV
printf "COMMIT_SHA1=${COMMIT_SHA1}"
#
export SOURCE_DIR=${PWD}/openfpga
export SOURCE_DIR_W=$(cygpath -w "${SOURCE_DIR}" | sed 's;\\;/;g')
echo "SOURCE_DIR_W=${SOURCE_DIR_W}" >> $GITHUB_ENV
#
export COMMIT_SHA1=$(git -C ${SOURCE_DIR} rev-parse --short HEAD)
echo "COMMIT_SHA1=${COMMIT_SHA1}" >> $GITHUB_ENV
printf "COMMIT_SHA1=${COMMIT_SHA1}"
#
export BUILD_DIR=${SOURCE_DIR}/build
export BUILD_DIR_W=$(cygpath -w "${BUILD_DIR}" | sed 's;\\;/;g')
echo "BUILD_DIR_W=${BUILD_DIR_W}" >> $GITHUB_ENV
Expand Down

0 comments on commit eaa7599

Please sign in to comment.