A community-maintained Python framework for creating mathematical animations.
Fix File Not Found Error - Github Actions (#416)
Naveen M K982446375f0b
diff --git a/.github/workflows/black-pr.yml b/.github/workflows/black-pr.ymlindex 3de710016..fb98f2656 100644--- a/.github/workflows/black-pr.yml+++ b/.github/workflows/black-pr.yml@@ -34,7 +34,7 @@ jobs:$commitEndpoint=$($payload.pull_request._links.commits.href)echo "$commitEndpoint"$commits = Invoke-WebRequest -Uri "$commitEndpoint" | ConvertFrom-Json- bash -c "git diff --name-only HEAD HEAD~$($commits.count)>/d/changes.txt"+ bash -c "git diff --name-only HEAD~$($commits.count) HEAD>/d/changes.txt"- name: Run Black on top of latest commitshell: bash@@ -45,14 +45,14 @@ jobs:content=$(</d/changes.txt)while read filedo- if [ $(python -c "print('${file}'[-2:])") == "py" ]+ if [[ ($(python -c "print('${file}'[-3:])") == ".py") && (-f ${file}) ]]thenblack --diff $filefidone </d/changes.txtwhile read filedo- if [ $(python -c "print('${file}'[-2:])") == "py" ]+ if [[ ($(python -c "print('${file}'[-3:])") == ".py") && (-f ${file}) ]]thenblack $filefidiff --git a/.github/workflows/black.yml b/.github/workflows/black.ymlindex cc15e6fed..e13f9c25b 100644--- a/.github/workflows/black.yml+++ b/.github/workflows/black.yml@@ -1,8 +1,6 @@name: blackon:workflow_dispatch:- schedule:- - cron: "0 0 * * *"jobs:format: