Skip to content

Commit

Permalink
Use new action in other jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-5546 committed Oct 3, 2023
1 parent 172e0c4 commit 168ae10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/actions/checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ runs:
path: src/${{ inputs.repository }}

- name: Checkout custom_interfaces ROS package
# if: ${{ inputs.repository != 'sailbot_workspace' && inputs.repository != 'custom_interfaces' }}
if: ${{ inputs.repository != 'sailbot_workspace' && inputs.repository != 'custom_interfaces' }}
uses: actions/checkout@v4
with:
repository: UBCSailbot/custom_interfaces
Expand Down
30 changes: 6 additions & 24 deletions .github/workflows/test_definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,10 @@ jobs:
with:
repository: UBCSailbot/sailbot_workspace

- name: Checkout ROS package
if: ${{ inputs.repository != 'sailbot_workspace' }}
uses: actions/checkout@v4
with:
repository: UBCSailbot/${{ inputs.repository }}
path: src/${{ inputs.repository }}

- name: Checkout custom_interfaces ROS package
if: ${{ inputs.repository != 'sailbot_workspace' && inputs.repository != 'custom_interfaces' }}
uses: actions/checkout@v4
- name: Checkout repositories
uses: ./.github/actions/checkout/
with:
repository: UBCSailbot/custom_interfaces
path: src/custom_interfaces
repository: ${{ inputs.repository }}

- name: Test
uses: ./.github/actions/test/
Expand Down Expand Up @@ -101,19 +92,10 @@ jobs:
with:
repository: UBCSailbot/sailbot_workspace

- name: Checkout ROS package
if: ${{ inputs.repository != 'sailbot_workspace' }}
uses: actions/checkout@v4
with:
repository: UBCSailbot/${{ inputs.repository }}
path: src/${{ inputs.repository }}

- name: Checkout custom_interfaces ROS package
if: ${{ inputs.repository != 'sailbot_workspace' && inputs.repository != 'custom_interfaces' }}
uses: actions/checkout@v4
- name: Checkout repositories
uses: ./.github/actions/checkout/
with:
repository: UBCSailbot/custom_interfaces
path: src/custom_interfaces
repository: ${{ inputs.repository }}

- name: Run linter
uses: ./.github/actions/clang-tidy/
Expand Down

0 comments on commit 168ae10

Please sign in to comment.