diff --git a/.github/workflows/vcs-repos.yaml b/.github/workflows/vcs-repos.yaml deleted file mode 100644 index 1665ce3..0000000 --- a/.github/workflows/vcs-repos.yaml +++ /dev/null @@ -1,32 +0,0 @@ ---- -name: Generate vcstool repos file. - -on: - workflow_dispatch: - -jobs: - update_ros2_repos: - name: Update ros2.repos file - runs-on: ubuntu-latest - steps: - - name: Clone project - uses: actions/checkout@v2 - - name: Install Earthly - run: | - sudo wget 'https://github.com/earthly/earthly/releases/latest/download/earthly-linux-amd64' -O /usr/local/bin/earthly - sudo chmod 755 /usr/local/bin/earthly - - name: Regenerate ros2.repos - run: earthly +repos-file - - name: Diff ros2.repos to determine if there have been changes - id: diff - run: | - if git diff --exit-code ros2.repos; then - echo "::set-output name=updated::false" - else - echo "::set-output name=updated::true" - fi - - name: Commit updated ros2.repos file - if: ${{ steps.diff.outputs.updated == 'true' }} - uses: EndBug/add-and-commit@v9 - with: - add: ros2.repos