File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 42
42
needs : npm
43
43
runs-on : macos-latest
44
44
steps :
45
+ # Ensure things are up to date
46
+ # Suggested by homebrew maintainers
47
+ # https://github.com/Homebrew/discussions/discussions/1532#discussioncomment-782633
48
+ - name : Set up Homebrew
49
+ id : set-up-homebrew
50
+ uses : Homebrew/actions/setup-homebrew@master
51
+
45
52
- uses : actions/checkout@v2
46
53
- name : Configure git
47
54
run : |
Original file line number Diff line number Diff line change @@ -29,7 +29,11 @@ main() {
29
29
# Source: https://serverfault.com/a/912788
30
30
# shellcheck disable=SC2016,SC2028
31
31
echo ' #!/bin/sh\nexec echo "$HOMEBREW_GITHUB_API_TOKEN"' > " $HOME " /.git-askpass.sh
32
- GIT_ASKPASS=
" $HOME /.git-askpass.sh" git push https://
[email protected] /cdrci/homebrew-core.git --all
32
+ # Ensure it's executable since we just created it
33
+ chmod +x " $HOME /.git-askpass.sh"
34
+ # GIT_ASKPASS lets us use the password when pushing without revealing it in the process list
35
+ # See: https://serverfault.com/a/912788
36
+ GIT_ASKPASS=
" $HOME /.git-askpass.sh" git push https://
[email protected] /cdr-oss/homebrew-core.git --all
33
37
34
38
# Find the docs for bump-formula-pr here
35
39
# https://github.com/Homebrew/brew/blob/master/Library/Homebrew/dev-cmd/bump-formula-pr.rb#L18
You can’t perform that action at this time.
0 commit comments