mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-03-26 21:33:02 +00:00
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:
45
.github/workflows/black.yml
vendored
45
.github/workflows/black.yml
vendored
@@ -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'
|
||||
Reference in New Issue
Block a user