Skip to content

Merge pull request #1735 from dehawkins512/dan_1102 #881

Merge pull request #1735 from dehawkins512/dan_1102

Merge pull request #1735 from dehawkins512/dan_1102 #881

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
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: Get manageiq.org repo
run: git clone https://github.com/ManageIQ/manageiq.org
- name: Build
run: |
cd manageiq.org
bundle install
exe/miq build all
- 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@v1
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 }}" }