File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 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+ })
You can’t perform that action at this time.
0 commit comments