summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.me>2019-12-13 14:22:38 -0500
committerMatan Kushner <hello@matchai.me>2019-12-13 14:23:58 -0500
commit7ab473c88cbbf204af8375bef768f83a2b04089f (patch)
tree00bad320b36a9b7e194b2c7c67f07ecc2e03cfa6 /.github/workflows
parentb2ebd245063d8d0f5319b9de436e9d8564fb2d5e (diff)
build: Automate bumping starship brew formula
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/workflow.yml19
1 files changed, 17 insertions, 2 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index a3837de64..aa0e45a0a 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -127,7 +127,7 @@ jobs:
# Install PHP at a fixed version
- uses: shivammathur/setup-php@master
with:
- php-version: '7.3.8'
+ php-version: "7.3.8"
# Install Mercurial (pre-installed on linux, installed from pip on macos
# and from choco on windows),
@@ -139,7 +139,7 @@ jobs:
- name: Install Mercurial (windows)
if: matrix.os == 'windows-latest'
run: choco install hg
-
+
# Install Terraform at a fixed version
- uses: volcano-coffee-company/setup-terraform@v1
with:
@@ -187,6 +187,21 @@ jobs:
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
+ update_brew_formula:
+ if: startsWith(github.ref, 'refs/tags/v')
+ name: Update Brew Formula
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@v1
+ - run: |
+ echo "https://starship-bot:$GITHUB_TOKEN@github.com" > ~/.git-credentials
+ git config --global credential.helper store
+ git config --global user.name "Starship Bot"
+ git config --global user.email "bot@starship.rs"
+ 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:
+ GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
+
# Build sources for every OS
github_build:
if: startsWith(github.ref, 'refs/tags/v')