Remove black auto formatting workflow (#632)

Remove black auto formatting workflow

SUMMARY
We don't have a proper tool to help trigger CI when a commit is pushed on a pull request.
Remove the black/format workflow until we found a token with valid perms
ISSUE TYPE


CI

Reviewed-by: Alina Buzachis
Reviewed-by: Mike Graves <mgraves@redhat.com>
This commit is contained in:
Bikouo Aubin
2023-06-14 18:37:56 +02:00
committed by GitHub
parent 318529abaa
commit 9ca13c3799

View File

@@ -1,45 +0,0 @@
---
name: black
concurrency:
group: '${{ github.workflow }} @ ${{ github.sha }}'
cancel-in-progress: true
on:
push:
branches:
- main
- 'stable-*'
pull_request_target:
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: checkout fork repository
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install required python librairies
run: pip install tox
shell: bash
- name: Run tox validation
run: tox -e black -vv
shell: bash
- name: commit and push changes
id: commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'automated changes - black formatting'
file_pattern: '*.py'