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 9
9
JEKYLL_ENV : production
10
10
MIQ_ENV : production
11
11
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
12
- PAYLOAD_REF : ${{ github.event.client_payload.ref }}
12
+ PAYLOAD_REF_NAME : ${{ github.event.client_payload.ref_name }}
13
13
PAYLOAD_SHA : ${{ github.event.client_payload.sha }}
14
14
PAYLOAD_REPOSITORY : ${{ github.event.client_payload.repository }}
15
15
PAYLOAD_PR_NUMBER : ${{ github.event.client_payload.pr_number }}
23
23
- name : Get manageiq.org repo
24
24
run : git clone https://github.com/ManageIQ/manageiq.org
25
25
- 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
29
30
- name : Deploy
30
31
run : deploy.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 12
12
git clone --bare --branch master --depth 5 https://x-access-token:${GITHUB_TOKEN} @github.com/ManageIQ/manageiq.github.io .git
13
13
git config core.bare false
14
14
git 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} "
16
30
git push origin master
You can’t perform that action at this time.
0 commit comments