mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
28 lines
605 B
YAML
28 lines
605 B
YAML
name: PR Validation
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
danger:
|
|
runs-on: ubuntu-latest
|
|
name: Danger
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0 # Danger needs history to compare
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install danger-python
|
|
|
|
- name: Run Danger
|
|
env:
|
|
DANGER_GITHUB_API_TOKEN: ${{ SECRET_REMOVEDs.GITHUB_TOKEN }}
|
|
run: danger-python ci
|