Skip to content

workflows: bump & use full versions #1804

workflows: bump & use full versions

workflows: bump & use full versions #1804

Workflow file for this run

name: Ruby
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
pull_request:
paths:
- .github/workflows/ruby.y*ml
jobs:
build:
if: github.repository_owner == 'Homebrew' || !github.event.schedule
runs-on: ubuntu-latest
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
core: false
cask: false
test-bot: true
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Install Homebrew Bundler RubyGems
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems
- name: Configure git
run: |
git config user.email '[email protected]'
git config user.name 'TANIGUCHI Masaya'
- name: Generate formulae
if: github.event_name == 'pull_request'
run: brew generate-linux-fonts --verbose --debug --write-only
- name: Generate and commit formulae
if: github.event_name != 'pull_request'
run: brew generate-linux-fonts --verbose --debug
- name: Publish to GitHub
if: github.event_name != 'pull_request'
env:
TOKEN: ${{ secrets.PUSH_TOKEN }}
run: |
git push https://fgborges:${TOKEN}@github.com/Homebrew/homebrew-linux-fonts HEAD:master