Skip to content

Commit

Permalink
Add Merge Check for MG Status (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Titsworth authored May 31, 2024
1 parent 1169f49 commit f1b176b
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,20 @@ jobs:
group_dir: ${{ matrix.group }}
ref: "refs/pull/${{ github.event.number }}/merge"
secrets: inherit
status-check:
needs: [group-diff, pipeline-ci]
runs-on: ubuntu-latest
if: always()
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit
- run: exit 1
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
&& needs.group-diff.outputs.groups != '[""]'
}}
40 changes: 40 additions & 0 deletions .github/workflows/merge_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright (c) 2024 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Merge Check
on:
merge_group: null
permissions: read-all
jobs:
status-check:
runs-on: ubuntu-latest
steps:
- uses: lewagon/wait-on-check-action@ccfb013c15c8afb7bf2b7c028fb74dc5a068cccc
with:
ref: ${{ github.event.merge_group.head_ref }}
check-name: helm-ci
repo-token: ${{ secrets.ACTION_TOKEN }}
wait-interval: 10
- uses: lewagon/wait-on-check-action@ccfb013c15c8afb7bf2b7c028fb74dc5a068cccc
with:
ref: ${{ github.event.merge_group.head_ref }}
check-name: integration-test
repo-token: ${{ secrets.ACTION_TOKEN }}
wait-interval: 10
- uses: lewagon/wait-on-check-action@ccfb013c15c8afb7bf2b7c028fb74dc5a068cccc
with:
ref: ${{ github.event.merge_group.head_ref }}
check-name: coverage
repo-token: ${{ secrets.ACTION_TOKEN }}
wait-interval: 10

0 comments on commit f1b176b

Please sign in to comment.