git-in-here.yml #108
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🚦 Check Contribution | |
on: | |
pull_request_target: | |
paths: | |
- 'git-in-here.yml' | |
types: | |
- opened | |
- synchronize | |
permissions: | |
pull-requests: write | |
contents: read | |
jobs: | |
check-contribution: | |
runs-on: ubuntu-latest | |
if: github.actor != 'lissy93' && github.actor != 'liss-bot' | |
steps: | |
# Checkout users branch | |
- name: Checkout PR 🛎️ | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
# Downloads + installs Python (used for running gen scripts) | |
- name: Set up Python 🐍 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
# Install contents of requirements.txt | |
- name: Install dependencies 📥 | |
run: | | |
python -m pip install --upgrade pip | |
cd lib && pip install -r requirements.txt | |
# The make command triggers all the Python scripts, generates output | |
- name: Run make command 🔨 | |
run: make validate_pr | |
env: | |
GITHUB_ACTOR: ${{ github.actor }} | |
GH_ACCESS_TOKEN: ${{ secrets.BOT_TOKEN }} | |
GITHUB_EVENT_PATH: ${{ github.event_path }} |