Skip to content

Commit

Permalink
[CI] Use the same workaround to permission issue as jsk_pr2eus
Browse files Browse the repository at this point in the history
  • Loading branch information
pazeshun committed Feb 13, 2025
1 parent 709e0d2 commit 52072b6
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,17 @@ jobs:
run: |
set -x
export USER=$(whoami)
sudo mkdir -p /__w/
sudo chmod 777 -R /__w/
sudo chown -R $USER $HOME
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
if [ "${{ matrix.CONTAINER }}" = "jskrobotics/ros-ubuntu:14.04" ]; then
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
# sudo mkdir -p /home/runner/work/_temp/_github_workflow/
# sudo chown -R $USER $HOME /home/runner/work/_temp/_github_workflow/
# ls -al /home/runner/work/_temp/_github_workflow/
else
git config --global --add safe.directory $GITHUB_WORKSPACE
fi
- name: Try to replace `node` with an glibc 2.17
shell: bash
run: |
Expand Down Expand Up @@ -90,10 +97,6 @@ jobs:
# ~/apt-cacher-ng
# ~/.ros/data
# key: ${{ github.workflow }}
- name: work around permission issue again
run: |
set -x
grep path $GITHUB_WORKSPACE/.gitmodules | sed 's/.*=//' | xargs -n 1 -I '{}' git config --global --add safe.directory $GITHUB_WORKSPACE/'{}'
- name: Run jsk_travis
uses: jsk-ros-pkg/jsk_travis@master
with:
Expand Down

0 comments on commit 52072b6

Please sign in to comment.