aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/homebrew-cask-updates.yml
blob: eaecc0b2c930af83159f260bca7d32f470978eac (plain) (blame)
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
name: Homebrew cask updates

on:
  release:
    types: [published]
  # Manual trigger from the UI
  workflow_dispatch:

jobs:
  bump-casks:
    runs-on: macos-latest
    steps:
    - name: Publish nightly
      uses: macauley/action-homebrew-bump-cask@v1
      if: ${{ contains(github.event.release.tag_name, 'nightly') }}
      with:
        # Required, custom GitHub access token with only the 'public_repo' scope enabled
        token: ${{ secrets.HOMEBREW_FERDIUM_PUBLISH_TOKEN }}
        # Bump all outdated casks in this tap
        tap: ferdium/homebrew-ferdium
        # Bump only these casks if outdated
        cask: ferdium-nightly
        livecheck: true
        dryrun: false
    - name: Publish beta
      uses: macauley/action-homebrew-bump-cask@v1
      if: ${{ contains(github.event.release.tag_name, 'beta') }}
      with:
        # Required, custom GitHub access token with only the 'public_repo' scope enabled
        token: ${{ secrets.HOMEBREW_FERDIUM_PUBLISH_TOKEN }}
        # Bump all outdated casks in this tap
        tap: ferdium/homebrew-ferdium
        # Bump only these casks if outdated
        cask: ferdium-beta
        livecheck: true
        dryrun: false
    - name: Publish release
      uses: macauley/action-homebrew-bump-cask@v1
      if: ${{ !contains(github.event.release.tag_name, 'nightly') && !contains(github.event.release.tag_name, 'beta') }}
      with:
        # Required, custom GitHub access token with only the 'public_repo' scope enabled
        token: ${{ secrets.HOMEBREW_FERDIUM_PUBLISH_TOKEN }}
        # Bump all outdated casks in this tap
        tap: ferdium/homebrew-ferdium
        # Bump only these casks if outdated
        cask: ferdium
        livecheck: true
        dryrun: false