Files
ghostty/.github/workflows/vouch-pr-gate.yml
Mitchell Hashimoto 3e5dbb2a34 pinact
2026-02-15 06:53:30 -08:00

36 lines
992 B
YAML

name: Vouch PR Gate
on:
pull_request_target:
types: [opened]
jobs:
check-contributor:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
ref: ${{ github.event.repository.default_branch }}
- uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
- uses: cachix/cachix-action@3ba601ff5bbb07c7220846facfa2cd81eeee15a1 # v16
with:
name: ghostty
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Check if contributor is vouched
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
nix develop -c nu .github/vouch/vouch.nu gh-check-pr \
-R ${{ github.repository }} \
${{ github.event.pull_request.number }} \
--dry-run=false