-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (32 loc) Β· 1.01 KB
/
ruby.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
name: Ruby
on:
schedule:
- cron: 0 0 * * *
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Ruby 3
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.0
- name: Configure git
run: |
git config user.email '[email protected]'
git config user.name 'TANIGUCHI Masaya'
- name: Convert and commit
run: |
git submodule update --init --remote
gem install bundler
bundle install --jobs 4 --retry 3 --without development
bundle exec ruby cask2formula convert
bundle exec ruby cask2formula commit
- name: Clean Formula directory
run: |
comm -23 --nocheck-order <(ls -1 Formula) <(ls -1 homebrew-cask-fonts/Casks) | xargs -I{} sh -c 'git rm ./Formula/{} && git commit -m "Remove {}"'
- name: Publish to GitHub
env:
TOKEN: ${{ secrets.PUSH_TOKEN }}
run: |
git push https://fgborges:${TOKEN}@github.com/Linuxbrew/homebrew-fonts HEAD:master