-
Notifications
You must be signed in to change notification settings - Fork 104
44 lines (41 loc) · 1.35 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
env:
BUNDLE_WITHOUT: test:development
MIQ_ENV: production
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
timeout-minutes: 30
- name: Build
run: bundle exec exe/miq build all --trace
- name: Regex Match Commit Message on Push
uses: actions-ecosystem/action-regex-match@v2
if: ${{ github.event_name == 'push' && github.repository_owner == 'ManageIQ' }}
id: regex-commit-message
with:
text: ${{ github.event.head_commit.message }}
regex: 'Merge pull request #(\d+)'
- name: Notify manageiq.github.io on Push
if: ${{ github.event_name == 'push' && github.repository_owner == 'ManageIQ' }}
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.WEBSITE_DEPLOY_TOKEN }}
repository: ManageIQ/manageiq.github.io
event-type: deploy
client-payload: |
{ "repository": "${{ github.repository }}",
"pr_number": "${{ steps.regex-commit-message.outputs.group1 }}",
"ref_name": "${{ github.ref_name }}",
"sha": "${{ github.sha }}" }