1
0
Fork 0
forked from infra/keys
keys/.forgejo/workflows/verify.yml
2025-01-28 11:24:26 +01:00

32 lines
No EOL
913 B
YAML

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
build-latex:
name: Verify SSH keys
runs-on: alpine
container:
image: alpine:latest
defaults:
run:
shell: ash -eo pipefail {0}
steps:
- name: Install dependencies
run: |
apk add --no-cache nodejs git openssh python3 py3-pip
- name: Checkout repository
uses: actions/checkout@v4
with:
# IMPORTANT! Otherwise, the script cannot see all commits and will assume the last commit is the author of every file.
fetch-depth: 0
- name: Create virtualenv and install Python dependencies
run: |
python -m venv .venv
. .venv/bin/activate
pip install --upgrade GitPython requests
- name: Run verification script
run: . .venv/bin/activate && python verify.py