Skip to content

Commit

Permalink
Merge pull request #442 from k-okada/fix_ga
Browse files Browse the repository at this point in the history
fix permision issue  actions/checkout#760 (comment)
  • Loading branch information
k-okada committed Apr 22, 2022
2 parents 4e8b3cf + 4e68780 commit 679f42e
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 10 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/indigo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ jobs:
steps:
- name: Install latest git ( use sudo for ros-ubuntu, remove sudo for ubuntu container), checkout@v2 uses REST API for git<2.18, which removes .git folder and does not checkout .travis submodules
run: sudo apt-get update && sudo apt-get install -y software-properties-common && sudo apt-get update && sudo add-apt-repository -y ppa:git-core/ppa && sudo apt-get update && sudo apt-get install -y git
- name: Before Checkout # need for actions/checkout with ros-ubuntu container
run: sudo chown -R user:jenkins $RUNNER_WORKSPACE $HOME
- 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
- name: Checkout
uses: actions/checkout@v2
- name: Run jsk_travis
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/kinetic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ jobs:
steps:
- name: Install latest git ( use sudo for ros-ubuntu, remove sudo for ubuntu container), checkout@v2 uses REST API for git<2.18, which removes .git folder and does not checkout .travis submodules
run: sudo apt-get update && sudo apt-get install -y software-properties-common && sudo apt-get update && sudo add-apt-repository -y ppa:git-core/ppa && sudo apt-get update && sudo apt-get install -y git
- name: Before Checkout # need for actions/checkout with ros-ubuntu container
run: sudo chown -R user:jenkins $RUNNER_WORKSPACE $HOME
- 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
- name: Checkout
uses: actions/checkout@v2
- name: Run jsk_travis
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,14 @@ jobs:
runs-on: ubuntu-latest
container: jskrobotics/ros-ubuntu:20.04
steps:
- name: Before Checkout # need for actoins/checkout with ros-ubuntu container
run: sudo chown -R user:jenkins $RUNNER_WORKSPACE $HOME
- 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
- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/melodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ jobs:
steps:
- name: Install latest git ( use sudo for ros-ubuntu, remove sudo for ubuntu container), checkout@v2 uses REST API for git<2.18, which removes .git folder and does not checkout .travis submodules
run: sudo apt-get update && sudo apt-get install -y software-properties-common && sudo apt-get update && sudo add-apt-repository -y ppa:git-core/ppa && sudo apt-get update && sudo apt-get install -y git
- name: Before Checkout # need for actions/checkout with ros-ubuntu container
run: sudo chown -R user:jenkins $RUNNER_WORKSPACE $HOME
- 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
- name: Checkout
uses: actions/checkout@v2
- name: Run jsk_travis
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/noetic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ jobs:
steps:
- name: Install latest git ( use sudo for ros-ubuntu, remove sudo for ubuntu container), checkout@v2 uses REST API for git<2.18, which removes .git folder and does not checkout .travis submodules
run: sudo apt-get update && sudo apt-get install -y software-properties-common && sudo apt-get update && sudo add-apt-repository -y ppa:git-core/ppa && sudo apt-get update && sudo apt-get install -y git
- name: Before Checkout # need for actions/checkout with ros-ubuntu container
run: sudo chown -R user:jenkins $RUNNER_WORKSPACE $HOME
- 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
- name: Checkout
uses: actions/checkout@v2
- name: Run jsk_travis
Expand Down

0 comments on commit 679f42e

Please sign in to comment.