File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 54
54
run : echo ::set-output name=BUILT::$(date -u +%a_%d_%b_%H:%M:%S_%Y)
55
55
56
56
- name : Run GoReleaser
57
- uses : goreleaser/goreleaser-action@v1
57
+ uses : goreleaser/goreleaser-action@v2
58
58
env :
59
59
GITHUB_TOKEN : ${{ secrets.GH_TOKEN_EXTRA }}
60
60
VERSION : ${{ steps.get_version.outputs.VERSION }}
Original file line number Diff line number Diff line change @@ -30,9 +30,24 @@ hub fork --no-remote
30
30
hub remote add fork https://github.com/${GITHUB_USER} /homebrew-tap
31
31
hub add Formula/ecctl.rb
32
32
hub checkout -b f/update-ecctl-formula-to-${VERSION}
33
- git config user.email " ${GIT_AUTHOR_EMAIL} "
34
- git config user.name " ${GIT_AUTHOR_NAME} "
33
+
34
+ if [ ! -z ${GIT_AUTHOR_EMAIL} ]; then
35
+ git config --local user.email " ${GIT_AUTHOR_EMAIL} "
36
+ fi
37
+
38
+ if [ ! -z ${GIT_AUTHOR_NAME} ]; then
39
+ git config --local user.name " ${GIT_AUTHOR_NAME} "
40
+ fi
41
+
35
42
git config --global hub.protocol https
36
43
git commit -m " Update ecctl version to ${VERSION} "
44
+
45
+ if [ ${CI} ]; then
46
+ git config --global url." https://${GITHUB_TOKEN} :x-oauth-basic@github.com/" .insteadOf " https://github.com/"
47
+ fi
48
+
49
+ echo " -> Printing ecctl formula..."
50
+ cat Formula/ecctl.rb
51
+
37
52
hub push fork f/update-ecctl-formula-to-${VERSION}
38
53
hub pull-request -m " Update ecctl version to ${VERSION} " -m " Created through automation by update-brew-tap.sh"
You can’t perform that action at this time.
0 commit comments