Skip to content

Updating brew Aliases πŸš€ #13

Updating brew Aliases πŸš€

Updating brew Aliases πŸš€ #13

name: Update brew Aliases
run-name: Updating brew Aliases πŸš€
on:
push:
branches:
- main
# TODO: Uncomment when CI development done
# paths:
# - .ci-scripts
# - .github/workflows
# - Formula/*.rb
# - README.md
jobs:
update-alises:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install packages
run: |
# https://github.com/marketplace/actions/yq-portable-yaml-processor
wget -q -O yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
chmod +x yq
sudo mv yq /usr/bin/yq
- name: Parse Formulas
run: .ci-scripts/parse-formulas.sh
- name: Generate Aliases
run: .ci-scripts/generate-aliases.sh
- name: Update TOC
run: .ci-scripts/update-toc.sh
- name: Commit & Push changes
run: |
git config --global user.name 'QAware Homebrew Bot'
git config --global user.email 'qaware.homebrew.bot@qaware.de'
git add Aliases README.md
git commit --quiet -m "chore: update Aliases" || {
echo "Nothing to commit or commit failed, will exit now"
exit 0
}
git push