Skip to content

Skip mas

Skip mas #182

Workflow file for this run

name: ci
on:
push:
workflow_dispatch:
env:
TERM: xterm
HOMEBREW_BUNDLE_MAS_SKIP: '1569813296'
jobs:
test:
runs-on: macos-14
strategy:
matrix:
command:
- help
- clone
- link
- install-brew
- install-defaults
- install-fisher
- install-vim
steps:
- uses: actions/checkout@v4
- if: ${{ matrix.command == 'install-brew' }}
name: brew uninstall go
run: |
versions=$(brew list | grep -E '^go$|^go@' || true)
echo $versions
for v in $versions
do
echo "brew uninstall $v"
brew uninstall $v
done
- if: ${{ matrix.command == 'install-brew' }}
id: skip
name: Skip mas installs
run: |
ids=$(cat Brewfile | grep -oE "[0-9]{9,}" | tr '\n' ' ')
echo $ids
echo "ids=$ids" >> "$GITHUB_OUTPUT"
- run: ./dot.sh ${{ matrix.command }}
env:
HOMEBREW_BUNDLE_MAS_SKIP: ${{ steps.skip.outputs.skip_ids }}