Skip to content

[Documentation] Document what the Spark previews do and when to use them #396

[Documentation] Document what the Spark previews do and when to use them

[Documentation] Document what the Spark previews do and when to use them #396

name: '🧰 Chat Bot Commands'
on:
issue_comment:
types: [created]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
check-comment:
name: Check comment
runs-on: ubuntu-latest
if: github.repository == 'adevinta/spark-android' && startsWith(github.event.comment.body, '@spark-ui-bot')
env:
ACTOR: ${{ github.actor }}
NUMBER: ${{ github.event.issue.number }}
COMMENT: ${{ github.event.comment.body }}
steps:
- uses: actions/checkout@v4
- if: github.event.issue.pull_request
run: gh pr checkout $NUMBER
- name: Paparazzi golden images
if: github.event.issue.pull_request && contains(github.event.comment.body, 'paparazzi')
uses: ./.github/actions/paparazzi-golden-images
with:
github-token: ${{ secrets.PAT_SPARK || secrets.GITHUB_TOKEN }}
pr-number: ${{ github.event.issue.number }}
- name: DependencyGuardBaseline
if: github.event.issue.pull_request && contains(github.event.comment.body, 'dependencyGuardBaseline')
uses: ./.github/actions/dependencyguard-baseline
with:
github-token: ${{ secrets.PAT_SPARK || secrets.GITHUB_TOKEN }}
pr-number: ${{ github.event.issue.number }}
- name: SpotlessApply
if: github.event.issue.pull_request && contains(github.event.comment.body, 'spotless')
uses: ./.github/actions/spotless-apply
with:
github-token: ${{ secrets.PAT_SPARK || secrets.GITHUB_TOKEN }}
pr-number: ${{ github.event.issue.number }}