Skip to content

Commit

Permalink
fix missing .git directory
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed May 23, 2022
1 parent e313986 commit c3aac36
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,26 @@ jobs:
- TEST : debian-unstable
DOCKER_IMAGE : debian:unstable
steps:
- name: Setup OS
run: |
sudo apt-get update -y
sudo apt-get upgrade -y
- name: Setup Git
run: |
sudo apt-get install -y git
- name: Chcekout
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: work around permission issue # https://github.com/actions/checkout/issues/760#issuecomment-1097501613
run: |
set -x
export USER=$(whoami)
git config --global --add safe.directory $GITHUB_WORKSPACE || echo "OK" # Show 'could not lock config file /github/home/.gitconfig: Permission denied', but it is ok
sudo mkdir -p /__w/
sudo chmod 777 -R /__w/
sudo chown -R $USER $HOME
# python3_check
- name: python3_check
if: matrix.CHECK_PYTHON3_COMPILE == true
Expand Down
1 change: 1 addition & 0 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ elif [ "$TEST" == "clang-tidy" ]; then
run-clang-tidy -fix -p $(dirname $file)
done
travis_time_end
sudo chown -R $USER $CI_SOURCE_PATH
git -C $CI_SOURCE_PATH --no-pager diff
git -C $CI_SOURCE_PATH diff-index --quiet HEAD -- .

Expand Down

0 comments on commit c3aac36

Please sign in to comment.