made sure that formatting mistakes in prod crate a PR #2101
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: Linting | |
on: | |
pull_request: | |
branches: [ main ] | |
types: [ opened, reopened, synchronize ] | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
cache-dependency-path: 'webclient/package.json' | |
- name: Install node dependencies | |
run: | | |
npm install -g openapi-format | |
npm install --prefix webclient | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
cache-dependency-path: 'requirements*.txt' | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r data/requirements.txt -r requirements-dev.txt -r server/main-api/test/requirements.txt | |
- name: Run pre-commit | |
continue-on-error: ${{ github.ref == 'refs/heads/main' }} | |
uses: pre-commit/[email protected] | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
if: github.ref == 'refs/heads/main' | |
with: | |
commit-message: fixed formatting mistakes have sneaked into prod | |
title: "chore(formatting): Fixed formatting mistakes" | |
body: | | |
- There has been a mishap and formatting mistakes have sneaked into prod | |
- Auto-generated by [create-pull-request][1] | |
PR comes from [this Workflow Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) | |
[ 1 ]: https://github.com/peter-evans/create-pull-request | |
assignees: CommanderStorm | |
reviewers: CommanderStorm | |
branch: chore/formatting-fixes | |
delete-branch: true |