-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.23 KB
/
Copy pathgithub-demo.yml
File metadata and controls
39 lines (33 loc) · 1.23 KB
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
#Generate Peer Review File
name: SimDiff Peer Review File Generation
on:
push:
branches:
- '**' # all branches
pull_request:
jobs:
simdiff_peer_review:
name: Generate SimDiff Peer Review File
runs-on: self-hosted # your Windows self-hosted runner
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
# ============ Set up DiffTool ===============
- name: Prepare SimDiff command
shell: 'powershell -ExecutionPolicy Bypass -File {0}'
run: |
git config --local difftool.simdiff.cmd '\"C:/Program Files/EnSoft/SimDiff Automation/sd4.exe\" -l \"$LOCAL\" -r \"$REMOTE\" -export aero_radmod_peerreview.html'
# ============ Invoke SimDiff ===============
- name: Run SimDiff comparison
shell: 'powershell -ExecutionPolicy Bypass -File {0}'
run: |
Write-Host "Comparing with SimDiff..."
git difftool -y -t simdiff HEAD~1 HEAD .\aero_radmod.slx
# ============ Publish Artifact ===============
- name: Upload SimDiff Peer Review File
uses: actions/upload-artifact@v4
with:
name: aero_radmod_peerreview
path: aero_radmod_peerreview.html