Remove GITHUB_WORKSPACE in clang-format.sh

master
Webster Sheets 2020-03-24 13:09:29 -04:00
parent 124f40fd45
commit d7e1c897da
2 changed files with 1 additions and 4 deletions

View File

@ -30,7 +30,7 @@ jobs:
# Make sure to include the base we want to merge into
- run: |
git fetch --no-tags --depth=1 origin ${{ github.base_ref }}
git fetch --no-tags --depth=1 origin ${{ github.base_ref }}:${{ github.base_ref }}
# Run the clang-format command (in $GITHUB_WORKSPACE, which is where the repo is checked out to)
- name: Run clang-format

View File

@ -2,9 +2,6 @@
CLANG_FORMAT=$(which clang-format)
# Github Actions compatibility
if [[ $GITHUB_WORKSPACE ]]; then cd $GIT_WORKSPACE; fi
# if PATCH_MODE is set to 0, then set it to the empty string so $PATCH_MODE continues to work
if ((PATCH_MODE == 0)); then PATCH_MODE=""; fi