Install #172
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
name: Install | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: # run once a day to make sure | |
- cron: "30 17 * * *" | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install using curl | |
run: | | |
rm -rf ~/.bashmatic | |
bash -c "$(curl -fsSL https://bashmatic.re1.re); bashmatic-install -q" | |
- name: verify bashmatic is there | |
run: | | |
bash -c "[[ -d ~/.bashmatic && -f ~/.bashmatic/init.sh ]]" | |
- name: install bashmatic into an alternative location with a given tag | |
run: | | |
mkdir -p ~/workspace | |
rm -rfv ~/workspace/bashmatic | |
bash -c "$(curl -fsSL https://bashmatic.re1.re); \ | |
bashmatic-install -p -d -q -f -b v3.1.2 -H ~/workspace/bashmatic" | |
- name: finally source bashmatic init.sh on CI | |
run: | | |
set +ex | |
source ~/.bashmatic/init.sh |