Skip to content

Add reusable Docs Agent workflow #185

Add reusable Docs Agent workflow

Add reusable Docs Agent workflow #185

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
homeboy:
name: Homeboy (${{ matrix.command }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
command: [lint, test]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate app token
id: app-token
uses: actions/create-github-app-token@v1
continue-on-error: true
with:
app-id: ${{ secrets.HOMEBOY_APP_ID }}
private-key: ${{ secrets.HOMEBOY_APP_PRIVATE_KEY }}
- name: Run Homeboy ${{ matrix.command }}
uses: Extra-Chill/homeboy-action@v2
with:
commands: ${{ matrix.command }}
expected-commands: lint,test
app-token: ${{ steps.app-token.outputs.token || '' }}
autofix: 'false'