-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.61 KB
/
remove-disabled-formulae.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
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Remove disabled formulae
on:
push:
paths:
- .github/workflows/remove-disabled-formulae.yml
schedule:
# Once every day at midnight UTC
- cron: "0 0 * * *"
concurrency:
group: remove-disabled-formulae
cancel-in-progress: true
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: Set up commit signing
uses: Homebrew/actions/setup-commit-signing@master
with:
signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }}
- name: Remove disabled formulae
id: remove_disabled
uses: Homebrew/actions/remove-disabled-formulae@master
env:
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }}
- name: Create pull request
if: ${{ steps.remove_disabled.outputs.formulae-removed == 'true' }}
uses: peter-evans/create-pull-request@45c510e1f68ba052e3cd911f661a799cfb9ba3a3
with:
token: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_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.