-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.14 KB
/
autobump.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
name: Bump casks on schedule or request
on:
workflow_dispatch:
schedule:
- cron: '20 */23 * * *'
permissions:
contents: read
jobs:
autobump:
if: github.repository == 'Ssttar/homebrew-star'
runs-on: macos-latest
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
core: false
cask: true
test-bot: false
- name: Configure Git user
uses: Homebrew/actions/git-user-config@master
with:
username: ${{ (github.event_name == 'workflow_dispatch' && github.actor) || 'StarBrewTestBot' }}
- name: Get list of autobump casks
id: autobump
run: echo "autobump_list=$(xargs < "$(brew --repo Ssttar/star)"/.github/autobump.txt)" >> "$GITHUB_OUTPUT"
- name: Bump casks
uses: Homebrew/actions/bump-packages@master
continue-on-error: true
with:
token: ${{ secrets.HOMEBREW_STAR_REPO_WORKFLOW_TOKEN }}
casks: ${{ github.event.inputs.casks || steps.autobump.outputs.autobump_list }}
env:
STARHOMEBREW_TEST_BOT_AUTOBUMP: 1