File tree Expand file tree Collapse file tree 5 files changed +43
-70
lines changed Expand file tree Collapse file tree 5 files changed +43
-70
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+ on :
3
+ repository_dispatch :
4
+ types : [deploy]
5
+ jobs :
6
+ deploy :
7
+ runs-on : ubuntu-latest
8
+ env :
9
+ JEKYLL_ENV : production
10
+ MIQ_ENV : production
11
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
12
+ PAYLOAD_REF : ${{ github.event.client_payload.ref }}
13
+ PAYLOAD_SHA : ${{ github.event.client_payload.sha }}
14
+ PAYLOAD_REPOSITORY : ${{ github.event.client_payload.repository }}
15
+ PAYLOAD_COMMIT_MESSAGE : ${{ github.event.client_payload.commit_message }}
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - name : Set up Ruby
19
+ uses : ruby/setup-ruby@v1
20
+ with :
21
+ ruby-version : ' 2.5'
22
+ bundler-cache : true
23
+ - name : Get manageiq.org repo
24
+ run : git clone https://github.com/ManageIQ/manageiq.org
25
+ - name : Build
26
+ run : cd manageiq.org & exe/miq build all
27
+ - name : Set COMMIT_MESSAGE
28
+ run : parse_commit_message.rb >> $GITHUB_ENV
29
+ - name : Deploy
30
+ run : deploy.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
set -x
4
4
5
- cd dest
5
+ cd manageiq.org/ dest
6
6
7
7
echo " www.manageiq.org" > CNAME
8
8
9
9
git config --global user.name " ManageIQ Bot"
10
10
git config --global user.email
" [email protected] "
11
11
12
- git clone --bare --branch master --depth 5 https://miq-bot :${GITHUB_TOKEN} @github.com/ManageIQ/manageiq.github.io .git
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 " ${TRAVIS_COMMIT_MESSAGE } "
15
+ git commit -m " ${COMMIT_MESSAGE } "
16
16
git push origin master
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env ruby
2
+
3
+ message =
4
+ if ENV [ "PAYLOAD_COMMIT_MESSAGE" ] . to_s =~ /\A Merge pull request (#\d +)/
5
+ "#{ ENV [ "PAYLOAD_REPOSITORY" ] } #{ \$1 } "
6
+ else
7
+ "#{ ENV [ "PAYLOAD_REPOSITORY" ] } @#{ ENV [ "PAYLOAD_SHA" ] } (#{ ENV [ "PAYLOAD_REF" ] } )"
8
+ end
9
+
10
+ puts "COMMIT_MESSAGE=\" #{ message } \" "
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments