Skip to content

Commit

Permalink
updates fetch depth and fix for gz fuel (#22)
Browse files Browse the repository at this point in the history
Signed-off-by: frederik <[email protected]>
  • Loading branch information
frede791 authored Dec 18, 2023
1 parent 203077d commit bd97d48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ jobs:
with:
fetch-depth: 2

- name: Accept OSRF software
run: |
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install libgz-tools2-dev
- name: Get latest commit hash
id: latest_commit
run: echo "hash=$(git log --format="%H" -n 1 | tail -n 1)" >> $GITHUB_OUTPUT
Expand All @@ -31,10 +24,10 @@ jobs:
id: second_to_last_commit
run: echo "hash=$(git log --format="%H" -n 2 | tail -n 1)" >> $GITHUB_OUTPUT

- name: Display commit hashes
run: |
echo "Latest Commit: ${{ steps.latest_commit.outputs.hash }}"
echo "Second-to-last Commit: ${{ steps.second_to_last_commit.outputs.hash }}"
- name: Update Fuel Models
run: ./fuel_upload.sh ${{ steps.second_to_last_commit.outputs.hash }} ${{ steps.latest_commit.outputs.hash }} ${{ secrets.GAZEBO_FUEL_TOKEN }}
run: |
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y libgz-fuel-tools8-dev
./fuel_upload.sh ${{ steps.second_to_last_commit.outputs.hash }} ${{ steps.latest_commit.outputs.hash }} ${{ secrets.GAZEBO_FUEL_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/sdf_parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Install packages
id: install-packages
Expand All @@ -20,7 +22,7 @@ jobs:
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt install libsdformat14-dev libsdformat14
sudo apt install -y libsdformat14-dev libsdformat14
- name: Build check_sdf
id: build-check-sdf
Expand Down

0 comments on commit bd97d48

Please sign in to comment.