File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 run : echo ::set-output name=BUILT::$(date -u +%a_%d_%b_%H:%M:%S_%Y)
5555
5656 - name : Run GoReleaser
57- uses : goreleaser/goreleaser-action@v1
57+ uses : goreleaser/goreleaser-action@v2
5858 env :
5959 GITHUB_TOKEN : ${{ secrets.GH_TOKEN_EXTRA }}
6060 VERSION : ${{ steps.get_version.outputs.VERSION }}
Original file line number Diff line number Diff line change @@ -30,9 +30,24 @@ hub fork --no-remote
3030hub remote add fork https://github.com/${GITHUB_USER} /homebrew-tap
3131hub add Formula/ecctl.rb
3232hub 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+
3542git config --global hub.protocol https
3643git 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+
3752hub push fork f/update-ecctl-formula-to-${VERSION}
3853hub 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