This repository contains Reusable Workflows and Composite Actions for Autoware.
This workflow checks if a certain secret is set.
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 }}
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.
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]
# ...
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.
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 }}
See the README.md
in each directory.