mirror of
https://github.com/BBaoVanC/bbaovanc.com.git
synced 2025-07-06 12:07:31 -05:00
- 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
31 lines
705 B
YAML
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
|