Skip to content

Commit

Permalink
add playstation_controller_interface package to the yaml (#380)
Browse files Browse the repository at this point in the history
* add playstation_controller_interface package to the yaml

Signed-off-by: Masaya Kataoka <[email protected]>

* modify deploy action

Signed-off-by: Masaya Kataoka <[email protected]>

---------

Signed-off-by: Masaya Kataoka <[email protected]>
  • Loading branch information
hakuturu583 authored Jan 4, 2025
1 parent 755cd9a commit 26d8c0a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/deploy_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,22 @@ jobs:
run: |
git add -N .
echo "name=count::$(git diff --name-only | wc -l)" >> "$GITHUB_OUTPUT"
- name: Check default branch
id: check_default_branch
- name: Check branch exist
id: check_branch
run: |
echo "name=default_branch::$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')" >> "$GITHUB_OUTPUT"
if git ls-remote --heads https://github.com/OUXT-Polaris/${{ matrix.package_name }}.git workflow/sync | grep -q 'refs/heads/workflow/sync'; then
echo "exist=true" >> "$GITHUB_OUTPUT"
else
echo "exist=false" >> "$GITHUB_OUTPUT"
fi
- name: Delete old branch
if: steps.check_branch.outputs.exist == 1
if: steps.check_branch.outputs.exist == 'true'
run: |
git push origin --delete workflow/sync; exit 0
git push origin --delete workflow/sync || true
- name: Print deleted branch
if: steps.check_branch.outputs.exist == 1
run: "echo 'Deleted branches: ${{ steps.delete_stuff.outputs.deleted_branches }}'"
if: steps.check_branch.outputs.exist == 'true'
run: |
echo "Deleted branch workflow/sync"
- uses: peter-evans/create-pull-request@v3
id: create_pull_request
if: steps.changes.outputs.count > 0
Expand Down
6 changes: 6 additions & 0 deletions ansible/roles/clone_packages/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@
version: master
accept_hostkey: yes
tags: [driver]
- name: clone
git:
repo: https://github.com/HarvestX/PlayStation-JoyInterface-ROS2.git
dest: "{{workspace_path}}/src/drivers/playstation_joy_interfaces"
version: humble
accept_hostkey: yes

# Control Package
- name: clone usv_controller package
Expand Down

0 comments on commit 26d8c0a

Please sign in to comment.