File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,19 @@ jobs:
49
49
id : set-up-homebrew
50
50
uses : Homebrew/actions/setup-homebrew@master
51
51
52
- - uses : actions/checkout@v3
52
+ - name : Checkout code-server
53
+ uses : actions/checkout@v3
54
+
55
+ - name : Checkout coder/homebrew-core
56
+ uses : actions/checkout@v3
57
+ with :
58
+ repository : coder/homebrew-core
59
+
53
60
- name : Configure git
54
61
run : |
55
62
git config user.name github-actions
56
63
git config user.email github-actions@github.com
64
+
57
65
- name : Bump code-server homebrew version
58
66
env :
59
67
HOMEBREW_GITHUB_API_TOKEN : ${{secrets.HOMEBREW_GITHUB_API_TOKEN}}
Original file line number Diff line number Diff line change @@ -21,15 +21,8 @@ main() {
21
21
exit 1
22
22
fi
23
23
24
- # NOTE: we need to make sure coderci/homebrew-core
25
- # is up-to-date
26
- # otherwise, brew bump-formula-pr will use an
27
- # outdated base
28
- echo " Cloning coderci/homebrew-core"
29
- git clone https://github.com/coderci/homebrew-core.git
30
-
31
24
# Make sure the git clone step is successful
32
- if directory_exists " homebrew-core" ; then
25
+ if ! directory_exists " homebrew-core" ; then
33
26
echo " git clone failed. Cannot find homebrew-core directory."
34
27
ls -la
35
28
exit 1
@@ -67,7 +60,7 @@ main() {
67
60
echo ' echo $HOMEBREW_GITHUB_API_TOKEN' > " $PATH_TO_ASKPASS "
68
61
69
62
# Make sure the git-askpass.sh file creation is successful
70
- if file_exists " $PATH_TO_GIT_ASKPASS " ; then
63
+ if ! file_exists " $PATH_TO_GIT_ASKPASS " ; then
71
64
echo " git-askpass.sh not found in $HOME ."
72
65
ls -la " $HOME "
73
66
exit 1
@@ -77,7 +70,7 @@ main() {
77
70
chmod +x " $PATH_TO_GIT_ASKPASS "
78
71
79
72
# Make sure the git-askpass.sh file is executable
80
- if is_executable " $PATH_TO_GIT_ASKPASS " ; then
73
+ if ! is_executable " $PATH_TO_GIT_ASKPASS " ; then
81
74
echo " $PATH_TO_GIT_ASKPASS is not executable."
82
75
ls -la " $PATH_TO_GIT_ASKPASS "
83
76
exit 1
You can’t perform that action at this time.
0 commit comments