Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflows: add remove-disabled-formulae workflow #67386

Merged
merged 1 commit into from
Dec 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/remove-disabled-formulae.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Remove disabled formulae

on:
push:
paths:
- .github/workflows/remove-disabled-formulae.yml
schedule:
# Once every day at midnight UTC
- cron: "0 0 * * *"

jobs:
remove-disabled-formulae:
if: startsWith(github.repository, 'Homebrew/')
runs-on: ubuntu-latest
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Configure Git user
uses: Homebrew/actions/git-user-config@master
with:
username: BrewTestBot

- name: Remove disabled formulae
id: remove_disabled
uses: Homebrew/actions/remove-disabled-formulae@master

- name: Create pull request
if: ${{ steps.remove_disabled.outputs.formulae-removed == 'true' }}
uses: peter-evans/create-pull-request@45c510e1f68ba052e3cd911f661a799cfb9ba3a3
with:
token: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
branch: remove-disabled-formulae
title: Remove disabled formulae
body: >
This pull request was created automatically by the
[`remove-disabled-formulae`](https://github.com/Homebrew/homebrew-core/blob/HEAD/.github/workflows/remove-disabled-formulae.yml)
workflow.