Skip to content

Commit dd25e4b

Browse files
committed
Fix code formatting job
1 parent 6f94d6b commit dd25e4b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/format-code.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Python
1414
uses: actions/setup-python@v2
1515
with:
16-
python-version: 3.10
16+
python-version: "3.10"
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
@@ -22,10 +22,7 @@ jobs:
2222
run: |
2323
black --verbose .
2424
- name: Commit Formated Code
25-
uses: EndBug/add-and-commit@v5
26-
env:
27-
# This is necessary in order to push a commit to the repo
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
uses: EndBug/add-and-commit@v7
2926
with:
3027
message: "Format code with black"
3128
# Ref https://git-scm.com/docs/git-add#_examples

0 commit comments

Comments
 (0)