Thanks to visit codestin.com
Credit goes to github.com

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

Commit 373bdbe

Browse files
committed
fixup! chore: update homebrew script to support linuxbrew
1 parent 0f0123d commit 373bdbe

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,13 @@ jobs:
9999
asset_path: coder-cli-windows-386/coder-cli-windows-386.zip
100100
asset_name: coder-cli-windows-386.zip
101101
asset_content_type: application/zip
102+
- name: Configure git for cdr/homebrew-coder
103+
run: |
104+
git config --global user.name Coder Bot
105+
git config --global user.email [email protected]
102106
- name: Open PR to cdr/homebrew-coder
107+
env:
108+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103109
run: ./ci/scripts/bump_homebrew.sh \
104110
$(pwd)/coder-cli-darwin-amd64/coder-cli-darwin-amd64.zip \
105111
$(pwd)/coder-cli-linux-amd64/coder-cli-linux-amd64.tar.gz

ci/scripts/bump_homebrew.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ pushd homebrew-coder
2121
branch="coder-cli-release-$tag"
2222
git checkout -b "$branch"
2323

24+
if [[ "$GITHUB_TOKEN" != "" ]]; then
25+
git remote set-url origin "https://x-access-token:$GITHUB_TOKEN@github.com/cdr/homebrew-coder"
26+
fi
27+
2428
new_formula="$(cat <<EOF
2529
class Coder < Formula
2630
desc "Command-line tool for the Coder remote development platform"

0 commit comments

Comments
 (0)