autoware-github-actions
This repository contains Reusable Workflows and Composite Actions for Autoware.
Supported reusable workflows
check-secret
This workflow checks if a certain secret is set.
Usage
jobs:
jobs:
check-secret:
uses: autowarefoundation/autoware-github-actions/.github/workflows/check-secret.yaml@v1
secrets:
secret: ${{ secrets.APP_ID }}
sync-files:
needs: check-secret
if: ${{ needs.check-secret.outputs.set == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
prevent-no-label-execution
This workflow checks if the PR has a specific label.
It is useful for preventing pull_request_target
event and self-hosted runners from being executed without the label.
Usage
jobs:
prevent-no-label-execution:
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
with:
label: ARM64
build-and-test-arm:
needs: prevent-no-label-execution
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
runs-on: [self-hosted, linux, ARM64]
# ...
semantic-pull-request
This workflow checks if the PR title complies with Conventional Commits.
The settings are based on commitizen/conventional-commit-types.
This just wraps amannn/action-semantic-pull-request.
Usage
name: semantic-pull-request
on:
pull_request_target:
types:
- opened
- edited
- synchronize
jobs:
semantic-pull-request:
uses: autowarefoundation/autoware-github-actions/.github/workflows/semantic-pull-request.yaml@v1
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
Supported composite actions
See the README.md
in each directory.