-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding TESTING formatting (on protected branch)
- Loading branch information
1 parent
a2c2572
commit 2727b99
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |