ci: use require-label action for health-check #1603
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: health-check | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- labeled | ||
schedule: | ||
- cron: 0 12 * * * | ||
workflow_dispatch: | ||
jobs: | ||
require-label: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/require-label.yaml@v1 | ||
with: | ||
label: tag:run-health-check | ||
load-env: | ||
needs: label-check | ||
Check failure on line 21 in .github/workflows/health-check.yaml
|
||
if: ${{ needs.label-check.outputs.result == 'true' || | ||
github.event_name == 'schedule' || | ||
github.event_name == 'workflow_dispatch' }} | ||
uses: ./.github/workflows/load-env.yaml | ||
docker-build: | ||
needs: load-env | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
- name: Set git config | ||
uses: autowarefoundation/autoware-github-actions/set-git-config@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Free disk space | ||
uses: ./.github/actions/free-disk-space | ||
- name: Build 'Autoware' | ||
uses: ./.github/actions/docker-build | ||
with: | ||
platform: amd64 | ||
cache-tag-suffix: main | ||
build-args: | | ||
ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }} | ||
BASE_IMAGE=${{ needs.load-env.outputs.base_image }} | ||
AUTOWARE_BASE_IMAGE=${{ needs.load-env.outputs.autoware_base_image }} | ||
AUTOWARE_BASE_CUDA_IMAGE=${{ needs.load-env.outputs.autoware_base_cuda_image }} | ||
LIB_DIR=x86_64 | ||
- name: Show disk space | ||
if: always() | ||
run: | | ||
df -h |