Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
auto-bump-homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
mariogarridopt committed Jul 18, 2023
1 parent 9401032 commit 8192d2a
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 43 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/bump-homebrew-formula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@ name: Bump Homebrew formula

on:
push:
tags:
- "v*"
workflow_dispatch:
tags: 'v*'

jobs:
homebrew:
name: Bump Homebrew formula
runs-on: ubuntu-latest
steps:
- name: Extract version
id: extract-version
run: |
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
- uses: mislav/bump-homebrew-formula-action@v2
if: ${{ !contains(github.ref, '-') }} # skip prereleases
with:
formula-name: awselect
formula-path: awselect.rb
homebrew-tap: mariogarridopt/awsume-fzf
base-branch: master
download-url: https://github.com/mariogarridopt/homebrew-awsume-fzf/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz
commit-message: |
{{formulaName}} {{version}}
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
jobs:
homebrew:
name: Bump Homebrew formula
runs-on: ubuntu-latest
steps:
- name: Extract version
id: extract-version
run: |
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
- uses: mislav/bump-homebrew-formula-action@v2
if: ${{ !contains(github.ref, '-') }} # skip prereleases
with:
formula-name: awselect
formula-path: awselect.rb
homebrew-tap: mariogarridopt/awsume-fzf
base-branch: master
download-url: https://github.com/mariogarridopt/homebrew-awsume-fzf/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz
commit-message: |
{{formulaName}} {{version}}
Update Formula Version
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
45 changes: 26 additions & 19 deletions .github/workflows/manual-homebrew-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
name: Manuealy Bump Homebrew formula
name: Manual Update on Homebrew formula


on:
workflow_dispatch:
inputs:
tag-name:
description: 'The git tag name to bump the formula to'
required: true

jobs:
homebrew:
name: Bump Homebrew formula
runs-on: ubuntu-latest
steps:
- uses: mislav/bump-homebrew-formula-action@v2
with:
formula-name: awselect
tag-name: ${{ github.event.inputs.tag-name }}
download-url: https://github.com/mariogarridopt/homebrew-awsume-fzf/archive/refs/tags/${{ github.event.inputs.tag-name }}.tar.gz
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
workflow_dispatch:
inputs:
tag-name:
description: 'The git tag name to bump the formula to'
required: true

jobs:
homebrew:
name: Bump Homebrew formula
runs-on: ubuntu-latest
steps:
- uses: mislav/bump-homebrew-formula-action@v2
with:
formula-name: awselect
formula-path: awselect.rb
homebrew-tap: mariogarridopt/awsume-fzf
tag-name: ${{ github.event.inputs.tag-name }}
download-url: https://github.com/mariogarridopt/homebrew-awsume-fzf/archive/refs/tags/${{ github.event.inputs.tag-name }}.tar.gz
commit-message: |
{{formulaName}} {{version}}
Update Formula Version
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

0 comments on commit 8192d2a

Please sign in to comment.