continuwuity/.forgejo/workflows/prefligit-checks.yml
Jade Ellis e61748497a
Some checks failed
Checks / Prefligit / prefligit (push) Failing after 13s
Release Docker Image / define-variables (push) Failing after 11s
Checks / Rust / Format (push) Failing after 9s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
Checks / Rust / Clippy (push) Failing after 24s
Checks / Rust / Cargo Test (push) Failing after 26s
ci: Pin specific repo version
2025-06-21 18:54:15 +01:00

23 lines
725 B
YAML

name: Checks / Prefligit
on:
push:
pull_request:
permissions:
contents: read
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.2.2
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