mirror of
https://github.com/starship/starship.git
synced 2025-02-08 22:39:39 +01:00
ci: use action to bump Homebrew formula (#1391)
This commit is contained in:
parent
e034d51cb2
commit
c97f9aef98
20
.github/workflows/workflow.yml
vendored
20
.github/workflows/workflow.yml
vendored
@ -173,23 +173,13 @@ jobs:
|
|||||||
update_brew_formula:
|
update_brew_formula:
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
name: Update Brew Formula
|
name: Update Brew Formula
|
||||||
runs-on: macos-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: mislav/bump-homebrew-formula-action@v1
|
||||||
- run: |
|
with:
|
||||||
echo "https://matchai:$HOMEBREW_GITHUB_API_TOKEN@github.com" > ~/.git-credentials
|
formula-name: starship
|
||||||
git config --global credential.helper store
|
|
||||||
git config --global user.name "Matan Kushner"
|
|
||||||
git config --global user.email "hello@matchai.dev"
|
|
||||||
|
|
||||||
cd $(brew --repo homebrew/core)
|
|
||||||
git fetch origin
|
|
||||||
sudo git reset --hard origin/master
|
|
||||||
cd -
|
|
||||||
|
|
||||||
brew bump-formula-pr --url=https://github.com/starship/starship/archive/$(git describe --tags).tar.gz --message="Automated release pull request using continuous integration." --no-browse -v starship --force
|
|
||||||
env:
|
env:
|
||||||
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
|
||||||
|
|
||||||
# Build sources for every OS
|
# Build sources for every OS
|
||||||
github_build:
|
github_build:
|
||||||
|
Loading…
Reference in New Issue
Block a user