forked from MFlowCode/MFC
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 890 Bytes
/
count.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
name: Check Line Counts
on: [push, pull_request, workflow_dispatch]
jobs:
sz:
name: Core MFC Line Difference
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout code from PR branch
uses: actions/checkout@v4
with:
path: pr
- name: Checkout code from MFC master
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.repository }}
ref: ${{ github.event.pull_request.base.ref }}
path: base
# repository: MFlowCode/MFC
# ref: master
# path: base
- name: Get Line Diff
run: |
BASE="$GITHUB_WORKSPACE/base"
PR="$GITHUB_WORKSPACE/pr"
cd $BASE
export MFC_PR=$PR
pwd
./mfc.sh count_diff