-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.02 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: macOS Setup
on:
push:
branches: [ run_setup_action ]
pull_request:
branches: [ run_setup_action ]
jobs:
macos-setup:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Mask Homebrew package list
run : |
sed -i '' '/^cask /d' ${GITHUB_WORKSPACE}/.config/homebrew/package-list-darwin-x86_64
sed -i '' '/^mas /d' ${GITHUB_WORKSPACE}/.config/homebrew/package-list-darwin-x86_64
- name: Run
run : |
DOTFILES_REPO="${GITHUB_WORKSPACE}/.git" ./setup.sh
# Use error.log. Not be able to use 'set -e' in .zprofile
#- name: Load .zprofile
# run : |
# touch error.log
# zsh ~/.zprofile 2> error.log
# cat error.log
# if [ -s error.log ]; then false; fi
## Use error.log. Not be able to use 'set -e' in .zshrc
#- name: Load .zshrc
# run : |
# touch error.log
# zsh ~/.zshrc 2> error.log
# cat error.log
# if [ -s error.log ]; then false; fi