Skip to content

Commit

Permalink
Adding TESTING formatting (on protected branch)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmilthaler committed Jul 26, 2023
1 parent a2c2572 commit 2727b99
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/auto-format-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: AutoFormattingTEST

on:
push:
branches:
- bugfix/auto-versioning-workflow-with-pat

jobs:
code-formatting-TEST:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
pip install -r requirements_test.txt
- name: Updating README files
id: update_readme
run: |
bash scripts/update_readme.sh
bash scripts/auto_commit.sh "Updating README files"
continue-on-error: true

- name: Code formatting and committing changes
id: code_format
run: |
bash scripts/auto_format.sh
bash scripts/auto_commit.sh "Automated formatting changes"
continue-on-error: true

- name: Push changes
if: ${{ steps.update_readme.outcome == 'success' || steps.code_format.outcome == 'success' }}
uses: ad-m/github-push-action@master
with:
branch: ${{ github.head_ref }}

0 comments on commit 2727b99

Please sign in to comment.