Skip to content

CI

CI #1193

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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 --path vendor/bundle
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@v3
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 }}" }