File tree Expand file tree Collapse file tree 3 files changed +20
-15
lines changed Expand file tree Collapse file tree 3 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 99 JEKYLL_ENV : production
1010 MIQ_ENV : production
1111 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
12- PAYLOAD_REF : ${{ github.event.client_payload.ref }}
12+ PAYLOAD_REF_NAME : ${{ github.event.client_payload.ref_name }}
1313 PAYLOAD_SHA : ${{ github.event.client_payload.sha }}
1414 PAYLOAD_REPOSITORY : ${{ github.event.client_payload.repository }}
1515 PAYLOAD_PR_NUMBER : ${{ github.event.client_payload.pr_number }}
2323 - name : Get manageiq.org repo
2424 run : git clone https://github.com/ManageIQ/manageiq.org
2525 - name : Build
26- run : cd manageiq.org && exe/miq build all
27- - name : Set COMMIT_MESSAGE
28- run : create_commit_message.rb >> $GITHUB_ENV
26+ run : |
27+ cd manageiq.org
28+ bundle install
29+ exe/miq build all
2930 - name : Deploy
3031 run : deploy.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1212git clone --bare --branch master --depth 5 https://x-access-token:${GITHUB_TOKEN} @github.com/ManageIQ/manageiq.github.io .git
1313git config core.bare false
1414git add -A
15- git commit -m " ${COMMIT_MESSAGE} "
15+
16+ commit_message=$(
17+ ruby << RUBY
18+ message =
19+ if ENV [" PAYLOAD_PR_NUMBER" ].to_s =~ /^(\d +) $/
20+ " #{ ENV [" PAYLOAD_REPOSITORY" ]} ##{ \$1 } "
21+ else
22+ " #{ ENV [" PAYLOAD_REPOSITORY" ]} @#{ ENV [" PAYLOAD_SHA" ]} (#{ ENV [" PAYLOAD_REF_NAME" ]} )"
23+ end
24+
25+ puts message
26+ RUBY
27+ )
28+
29+ git commit -m " Deploy for ${commit_message} "
1630git push origin master
You can’t perform that action at this time.
0 commit comments