Skip to content

Commit 3092b4c

Browse files
Live Publish (02/06/2025 05:00:00 AM)
2 parents 4efe758 + 7f60285 commit 3092b4c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Validate PowerFx references
2+
run-name: ${{ github.actor }} validating PowerFx references
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
paths:
7+
- .\power-platform\power-fx\funcjson\**
8+
jobs:
9+
run-powershell:
10+
runs-on: windows-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
15+
- name: Set up PowerShell
16+
uses: actions/setup-powershell@v2
17+
18+
- name: Run validation script
19+
id: validation_run
20+
run: |
21+
.\power-platform\power-fx\validate.ps1
22+
shell: pwsh
23+
comment:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Add PR comment
27+
- uses: actions/github-script@v3
28+
with:
29+
github-token: ${{secrets.GITHUB_TOKEN}}
30+
errorTextOutput: ${{ steps.validation_run.outputs.reportedErrorsOutput}}
31+
script: |
32+
github.issues.createComment({
33+
issue_number: context.issue.number,
34+
owner: context.repo.owner,
35+
repo: context.repo.repo,
36+
body: errorTextOutput
37+
})

0 commit comments

Comments
 (0)