Remove GITHUB_WORKSPACE in clang-format.sh
parent
124f40fd45
commit
d7e1c897da
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue