Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Commit373bdbe

Browse files
committed
fixup! chore: update homebrew script to support linuxbrew
1 parent0f0123d commit373bdbe

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 bot@coder.com
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)

[8]ページ先頭

©2009-2025 Movatter.jp