-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (38 loc) · 1.16 KB
/
patch-check.yml
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
# @file
# GitHub Workflow for patch check
#
# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
name: "Patch check"
on:
pull_request:
branches:
- main
jobs:
patch-check:
runs-on: ubuntu-latest
name: EDK2 Patch check
steps:
- name: checkout edk2
uses: actions/checkout@v3
with:
repository: tianocore/edk2
path: ./edk2
- name: checkout edk2-redfish-client
uses: actions/checkout@v3
with:
path: ./edk2-redfish-client
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: generate format patch
run: |
mkdir format-patch
cd edk2-redfish-client
git format-patch --subject-prefix="edk2-redfish-client][PATCH" -${{ github.event.pull_request.commits }} HEAD -O ../edk2/BaseTools/Conf/diff.order -o ../format-patch/
ls ../format-patch/
- name: run PatchCheck.py
run: |
./edk2-redfish-client/.github/workflows/patch-check.sh ./format-patch/ ./edk2/
shell: bash