name: generatedfiles

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

permissions:
  contents: read

jobs:
  generatedfiles_job:
    runs-on: ubuntu-latest
    name: Regenerate derived files
    steps:
      - name: Check out the repository to the runner
        uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
        with:
          persist-credentials: false
      - name: Regenerate the log test data
        run: ./testdata/build_log.sh
      - name: Confirm there are no diffs
        run: git diff --exit-code
