Files
bbaovanc.com/.github/workflows/audit.yml
BBaoVanC 86a03a676a Reform build scripts and actions workflows to reduce duplication
- Create audit.sh to hold all the audit related code
- Call compress.sh directly in build.sh
  - remove need for calling compress.sh in GitHub workflows
- Time each stage of compress.sh (each format) separately
- Run audit before staging or demo uploads
2025-07-01 18:49:34 -05:00

31 lines
705 B
YAML

name: Audit
on:
push:
pull_request:
jobs:
audit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Read HUGO_VERSION
id: hugo_version
run: echo "HUGO_VERSION=$(cat HUGO_VERSION)" >> $GITHUB_OUTPUT
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ${{ steps.hugo_version.outputs.HUGO_VERSION }}
extended: true
- name: Run audit
run: ./audit.sh