-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from Brewforge/fix-api-rate
fix(#49): github api rate limit in actions
- Loading branch information
Showing
6 changed files
with
119 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Brew Tap | ||
|
||
inputs: | ||
HOMEBREW_GITHUB_API_TOKEN: | ||
description: 'Homebrew GitHub API Token' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Add Tap | ||
env: | ||
HOMEBREW_GITHUB_API_TOKEN: ${{ inputs.HOMEBREW_GITHUB_API_TOKEN }} | ||
shell: bash -ieo pipefail {0} | ||
run: | | ||
brew tap brewforge/chinese | ||
brew update | ||
- name: Install Homebrew's dependencies | ||
shell: bash -ieo pipefail {0} | ||
run: | | ||
brew install ripgrep sd gcc parallel coreutils | ||
brew unlink coreutils && brew link coreutils | ||
brew install-bundler-gems --groups "audit,style" | ||
- uses: oleksiyrudenko/gha-git-credentials@v2-latest | ||
with: | ||
global: true | ||
name: 'Brewforge-Bot' | ||
email: '[email protected]' | ||
token: '${{ inputs.HOMEBREW_GITHUB_API_TOKEN }}' | ||
|
||
- name: show git context | ||
shell: bash -ieo pipefail {0} | ||
run: | | ||
cat $HOME/.gitconfig | ||
cat $GITHUB_ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,17 @@ | ||
name: Homebrew Action | ||
|
||
inputs: | ||
HOMEBREW_GITHUB_API_TOKEN: | ||
description: 'Homebrew GitHub API Token' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Set up Homebrew | ||
id: set-up-homebrew | ||
uses: Homebrew/actions/setup-homebrew@master | ||
with: | ||
core: true | ||
cask: true | ||
test-bot: false | ||
|
||
- name: Add parallel cli | ||
shell: bash | ||
shell: bash -ieo pipefail {0} | ||
run: | | ||
brew install parallel | ||
# makesure brew livecheck works | ||
brew livecheck parallel | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | ||
- name: Add Tap | ||
env: | ||
HOMEBREW_GITHUB_API_TOKEN: ${{ inputs.HOMEBREW_GITHUB_API_TOKEN }} | ||
shell: bash | ||
- name: Add Homebrew to PATH | ||
shell: bash -ieo pipefail {0} | ||
run: | | ||
brew tap brewforge/chinese | ||
brew update | ||
brew install ripgrep sd | ||
touch $HOME/.bash_profile | ||
(echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> $HOME/.bash_profile | ||
eval "$(/usr/local/bin/brew shellenv)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Linuxbrew Action | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Set up Linuxbrew | ||
shell: bash -ieo pipefail {0} | ||
run: | | ||
sudo apt-get install build-essential procps curl file git | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | ||
- name: Add Linuxbrew to PATH | ||
shell: bash -ieo pipefail {0} | ||
run: | | ||
touch $HOME/.bashrc | ||
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> $HOME/.bashrc | ||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters