diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 520750ad8..bb237a5c1 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -32,4 +32,21 @@ jobs: 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/action@v3.0.1 + - 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