-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (36 loc) Β· 1.15 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
34
35
36
37
name: Ruby
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
build:
if: github.repository_owner == 'Homebrew' || !github.event.schedule
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Ruby 3
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- 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/Homebrew/homebrew-linux-fonts HEAD:master