Skip to content

Commit

Permalink
feat: bump cask action
Browse files Browse the repository at this point in the history
  • Loading branch information
suphon-t committed Jan 11, 2024
1 parent 2c14e08 commit db2b9e0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/bump-cask.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Bump cask
on:
workflow_dispatch:
inputs:
cask:
required: true
type: string
version:
required: true
type: string

jobs:
build:
runs-on: macos-13
steps:
- name: Setup gitconfig with token
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: |
cat << EOF > ~/.gitconfig
[remote "origin"]
url = https://[email protected]/$GITHUB_REPOSITORY
EOF
- name: Bump tap
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }}
REPOSITORY: ${{ github.repository }}
CASK: ${{ github.event.inputs.cask }}
VERSION: ${{ github.event.inputs.version }}
run: |
brew tap "$REPOSITORY"
brew bump-cask-pr "$REPOSITORY/$CASK" --version "$VERSION" --no-fork

0 comments on commit db2b9e0

Please sign in to comment.