This repository was archived by the owner on Aug 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 99
99
asset_path : coder-cli-windows-386/coder-cli-windows-386.zip
100
100
asset_name : coder-cli-windows-386.zip
101
101
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]
102
106
- name : Open PR to cdr/homebrew-coder
107
+ env :
108
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103
109
run : ./ci/scripts/bump_homebrew.sh \
104
110
$(pwd)/coder-cli-darwin-amd64/coder-cli-darwin-amd64.zip \
105
111
$(pwd)/coder-cli-linux-amd64/coder-cli-linux-amd64.tar.gz
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ pushd homebrew-coder
21
21
branch=" coder-cli-release-$tag "
22
22
git checkout -b " $branch "
23
23
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
+
24
28
new_formula=" $( cat << EOF
25
29
class Coder < Formula
26
30
desc "Command-line tool for the Coder remote development platform"
You can’t perform that action at this time.
0 commit comments