Skip to content

Commit

Permalink
Add docs check action
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Sep 26, 2024
1 parent 712992d commit 6c3b6e9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-candidate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
repo: docs_new
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: test-release.yml
ref: add-workflow-call
ref: master
client_payload: '{"husarion_ugv_branch": "ros2-devel"}'

# TODO: Add unit testing for panther_ros when ready
Expand Down
75 changes: 20 additions & 55 deletions .github/workflows/release-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,18 @@ env:
MAIN_BRANCH: ros2

jobs:
release_panther_msgs:
name: Release panther_msgs repository
release_project:
name: Release Husarion UGV project
runs-on: ubuntu-22.04
steps:
- name: Trigger repository release workflow
- name: Release panther_msgs repository
uses: convictional/[email protected]
with:
owner: husarion
repo: panther_msgs
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: release-repository.yaml
ref: ${{ env.RC_BRANCH_NAME }}
wait_interval: 10
client_payload: |
{
"release_candidate": "${{ env.RC_BRANCH_NAME }}",
Expand All @@ -52,21 +51,14 @@ jobs:
"prerelease": "${{ github.event.inputs.prerelease }}"
}
release_panther_ros:
name: Release panther_ros repository
needs:
- release_panther_msgs
runs-on: ubuntu-22.04
steps:
- name: Trigger panther_ros release workflow
- name: Release panther_ros repository
uses: convictional/[email protected]
with:
owner: husarion
repo: panther_ros
github_token: ${{ secrets.GITHUB_TOKEN }} # Use the default GITHUB_TOKEN for local repository
workflow_file_name: release-repository.yaml
ref: ${{ env.RC_BRANCH_NAME }}
wait_interval: 10
client_payload: |
{
"release_candidate": "${{ env.RC_BRANCH_NAME }}",
Expand All @@ -76,43 +68,29 @@ jobs:
"prerelease": "${{ github.event.inputs.prerelease }}"
}
rebuild_and_push_docker_images:
name: Rebuild panther docker images with new version
runs-on: ubuntu-22.04
needs:
- release_panther_ros
steps:
- name: Trigger repository build workflow
- name: Rebuild panther docker images with new version
uses: convictional/[email protected]
with:
owner: husarion
repo: panther-docker
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: ros-docker-image.yaml
ref: ${{ env.RC_BRANCH_NAME }}
wait_interval: 10
client_payload: |
{
"panther_codebase_version": "${{ github.event.inputs.version }}",
"build_type": "development",
"target_distro": "humble"
}
release_panther_docker:
name: Release panther-docker repository
needs:
- rebuild_and_push_docker_images
runs-on: ubuntu-22.04
steps:
- name: Trigger repository release workflow
- name: Release panther-docker repository
uses: convictional/[email protected]
with:
owner: husarion
repo: panther-docker
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: release-repository.yaml
ref: ${{ env.RC_BRANCH_NAME }}
wait_interval: 10
client_payload: |
{
"release_candidate": "${{ env.RC_BRANCH_NAME }}",
Expand All @@ -122,22 +100,14 @@ jobs:
"prerelease": "${{ github.event.inputs.prerelease }}"
}
release_panther_rpi_os_image:
name: Release panther-rpi-os-img repository
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
needs:
- release_panther_docker
runs-on: ubuntu-22.04
steps:
- name: Trigger repository release workflow
- name: Release panther-rpi-os-img repository
uses: convictional/[email protected]
with:
owner: husarion
repo: panther-rpi-os-img
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: release-repository.yaml
ref: ${{ env.RC_BRANCH_NAME }}
wait_interval: 10
client_payload: |
{
"release_candidate": "${{ env.RC_BRANCH_NAME }}",
Expand All @@ -147,46 +117,41 @@ jobs:
"prerelease": "${{ github.event.inputs.prerelease }}"
}
build_and_publish_rpi_image:
name: Build panther system image
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
needs:
- release_panther_rpi_os_image
runs-on: ubuntu-22.04
steps:
- name: Trigger repository build workflow
- name: Build panther system image
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
uses: convictional/[email protected]
with:
owner: husarion
repo: panther-rpi-os-img
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: build_and_deploy_image.yaml
ref: ${{ env.MAIN_BRANCH }}
wait_interval: 10
client_payload: |
{
"dev_image": "false",
"panther_codebase_version": "${{ github.event.inputs.version }}",
"image_tag": "${{ github.event.inputs.version }}"
}
build_and_publish_rpi_flash_os_image:
name: Build panther flash OS image
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
needs:
- build_and_publish_rpi_image
runs-on: ubuntu-22.04
steps:
- name: Trigger repository build workflow
- name: Build panther flash OS image
if: ${{ fromJSON(github.event.inputs.automatic_mode) == true }}
uses: convictional/[email protected]
with:
owner: husarion
repo: panther-rpi-os-img
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: build_and_deploy_flash_os_image.yaml
ref: ${{ env.MAIN_BRANCH }}
wait_interval: 10
client_payload: |
{
"image_tag": "${{ github.event.inputs.version }}"
}
- name: Trigger repository build workflow
uses: convictional/[email protected]
with:
owner: husarion
repo: docs_new
github_token: ${{ secrets.GH_PAT }}
workflow_file_name: build.yml
ref: master

0 comments on commit 6c3b6e9

Please sign in to comment.