Skip to content

Commit

Permalink
Migrate to actions/checkout@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-luedtke committed Aug 4, 2024
1 parent 28daec8 commit 20c562e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: docker://koalaman/shellcheck-alpine
with:
args: /bin/sh -c "shellcheck -x *.sh industrial_ci/scripts/*_ci industrial_ci/src/*.sh industrial_ci/src/*/*.sh"
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: ardent does not support conditions in package.xml
run: |
echo "BEFORE_BUILD_TARGET_WORKSPACE=sed -i /condition/d /root/target_ws/src/industrial_ci/industrial_ci/package.xml" >> "$GITHUB_ENV"
Expand All @@ -69,7 +69,7 @@ jobs:
ROS_DISTRO: [noetic, humble, jazzy]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: ros industrial-ci
uses: './'
env:
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
- {ROS_DISTRO: noetic, PYLINT_ARGS: "--errors-only", PYLINT_EXCLUDE: "sample_talker.py", PYLINT_CHECK: "true"}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: './'
with:
config: ${{toJSON(matrix)}}
Expand All @@ -150,7 +150,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: './'
id: ici
with:
Expand Down Expand Up @@ -181,13 +181,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout external repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{matrix.repo}}
ref: ${{matrix.ref}}
fetch-depth: ${{matrix.depth}}

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
path: .industrial_ci

Expand All @@ -208,14 +208,14 @@ jobs:
- {ROS_DISTRO: humble, PRERELEASE: true, UBUNTU: 22.04, TARGET_WORKSPACE: ". github:ros-controls/control_msgs#galactic-devel"}
runs-on: ubuntu-${{matrix.env.UBUNTU}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: './'
env: ${{matrix.env}}

builders:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
for BUILDER in $(ls industrial_ci/src/builders/*.sh); do
echo "##[group]BUILDER=$BUILDER"
Expand All @@ -226,7 +226,7 @@ jobs:
test_arm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v1
- uses: './'
env:
Expand All @@ -237,7 +237,7 @@ jobs:
run_travis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
sudo apt install -y python3-yaml
industrial_ci/scripts/run_travis
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ For GitHub Actions
- {ROS_DISTRO: melodic, ROS_REPO: main}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: 'ros-industrial/industrial_ci@master'
env: ${{matrix.env}}

Expand Down
2 changes: 1 addition & 1 deletion doc/industrial_ci_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache" # directory for ccache (and how we enable ccache in industrial_ci)
steps:
- uses: actions/checkout@v3 # clone target repository
- uses: actions/checkout@v4 # clone target repository
- uses: actions/cache@v2 # fetch/store the directory used by ccache before/after the ci run
with:
path: ${{ env.CCACHE_DIR }}
Expand Down

0 comments on commit 20c562e

Please sign in to comment.