From 6520947717f320e6c5fc54db53eeed2dbebe5e69 Mon Sep 17 00:00:00 2001 From: Shun Hasegawa Date: Tue, 30 May 2023 11:48:57 +0900 Subject: [PATCH] [CI] Update checkout to avoid permission error See https://github.com/jsk-ros-pkg/jsk_robot/pull/1643 --- .github/workflows/indigo.yaml | 4 +++- .github/workflows/kinetic.yml | 4 +++- .github/workflows/melodic.yml | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/indigo.yaml b/.github/workflows/indigo.yaml index bc1177cc9..214f28393 100644 --- a/.github/workflows/indigo.yaml +++ b/.github/workflows/indigo.yaml @@ -20,7 +20,9 @@ jobs: 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 - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3.0.2 + with: + submodules: true # github actions cache does not work because of permission denied. # see: https://github.com/actions/cache/issues/404 # - name: Cache several data diff --git a/.github/workflows/kinetic.yml b/.github/workflows/kinetic.yml index c727939c5..101f7924d 100644 --- a/.github/workflows/kinetic.yml +++ b/.github/workflows/kinetic.yml @@ -20,7 +20,9 @@ jobs: 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 - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3.0.2 + with: + submodules: true # github actions cache does not work because of permission denied. # see: https://github.com/actions/cache/issues/404 # - name: Cache several data diff --git a/.github/workflows/melodic.yml b/.github/workflows/melodic.yml index bcf64cc77..b4d4cdf52 100644 --- a/.github/workflows/melodic.yml +++ b/.github/workflows/melodic.yml @@ -20,7 +20,9 @@ jobs: 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 - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3.0.2 + with: + submodules: true # github actions cache does not work because of permission denied. # see: https://github.com/actions/cache/issues/404 # - name: Cache several data