-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #486 from EsupPortail/dev
DEV #2.8.2
- Loading branch information
Showing
271 changed files
with
88,235 additions
and
78,528 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
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,46 @@ | ||
name: Code Formatting | ||
|
||
on: | ||
push: | ||
branches: [master, dev] | ||
|
||
jobs: | ||
code-formatting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Running prettier | ||
run: npx prettier --write pod/*/static/**/*.js | ||
|
||
- name: Check for modified files | ||
id: prettier-git-check | ||
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi) | ||
|
||
- name: Push changes | ||
if: steps.prettier-git-check.outputs.modified == 'true' | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git commit -am "Fixup: format code with Prettier" | ||
- name: Install Black | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install black | ||
- name: Running Black | ||
run: black . -l 90 | ||
|
||
- name: Check for modified files | ||
id: black-git-check | ||
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi) | ||
|
||
- name: Commit changes | ||
if: steps.black-git-check.outputs.modified == 'true' | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | ||
git commit -am "Fixup: format code with Black" | ||
git push |
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
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
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,2 @@ | ||
# Ignore all minified files: | ||
pod/**/*.min.js |
Oops, something went wrong.