Skip to content

Commit

Permalink
ci(actions): support both remove files and packages
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Oct 14, 2023
1 parent b0f3179 commit f8fd5ac
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/macos-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Clean Up Environment
if: ${{ vars.REMOVE_PACKAGES != '' }}
env:
REMOVE_PACKAGES: ${{ vars.REMOVE_PACKAGES }}
REMOVE_FILES: ${{ vars.REMOVE_FILES }}
run: |
brew uninstall $REMOVE_PACKAGES
if test -n "$REMOVE_PACKAGES"; then
brew uninstall --ignore-dependencies $REMOVE_PACKAGES
fi
if test -n "$REMOVE_FILES"; then
rm -f $REMOVE_PACKAGES
fi
- name: Installation Info
run: |
sh install.sh -i
Expand All @@ -38,11 +43,16 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Clean Up Environment
if: ${{ vars.REMOVE_PACKAGES != '' }}
env:
REMOVE_PACKAGES: ${{ vars.REMOVE_PACKAGES }}
REMOVE_FILES: ${{ vars.REMOVE_FILES }}
run: |
brew uninstall $REMOVE_PACKAGES
if test -n "$REMOVE_PACKAGES"; then
brew uninstall --ignore-dependencies $REMOVE_PACKAGES
fi
if test -n "$REMOVE_FILES"; then
rm -f $REMOVE_PACKAGES
fi
- name: Installation Info
run: |
sh -c "$(curl -sSL dots.spywhere.me)" - -i
Expand Down

0 comments on commit f8fd5ac

Please sign in to comment.