mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-26 14:15:22 +02:00
21 lines
691 B
YAML
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
|