continuwuity/.forgejo/workflows/prefligit-checks.yml
2025-06-21 18:28:28 +01:00

21 lines
691 B
YAML

name: Checks / Prefligit
on:
push:
pull_request:
jobs:
prefligit:
runs-on: ubuntu-latest
env:
FROM_REF: ${{ github.event.pull_request.base.sha || (!github.event.forced && ( github.event.before != '0000000000000000000000000000000000000000' && github.event.before || github.sha )) || format('{0}~', github.sha) }}
TO_REF: ${{ github.sha }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
depth: 0 # we need to be able to get diffs
- uses: ./.forgejo/actions/prefligit
with:
extra_args: --from-ref ${{ env.FROM_REF }} --to-ref ${{ env.TO_REF }} --hook-stage manual