Skip to content

Commit 3a1e708

Browse files
AustinShalitcalcmogul
authored andcommitted
Use workspace env variable instead of branching
1 parent f38b743 commit 3a1e708

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,7 @@ jobs:
7373
- name: wpiformat - absolute path to file
7474
shell: bash
7575
run: |
76-
if [ "$RUNNER_OS" == "Linux" ]; then
77-
python -m wpiformat -f /home/runner/work/styleguide/styleguide/wpiformat/wpiformat/__init__.py -v
78-
elif [ "$RUNNER_OS" == "Windows" ]; then
79-
python -m wpiformat -f /d/a/styleguide/styleguide/wpiformat/wpiformat/__init__.py -v
80-
elif [ "$RUNNER_OS" == "macOS" ]; then
81-
python -m wpiformat -f /Users/runner/work/styleguide/styleguide/wpiformat/wpiformat/__init__.py -v
82-
else
83-
echo "$RUNNER_OS not supported"
84-
exit 1
85-
fi
76+
python -m wpiformat -f $GITHUB_WORKSPACE/wpiformat/wpiformat/__init__.py -v
8677
8778
- name: wpiformat - multiple files
8879
run: |

0 commit comments

Comments
 (0)