Skip to content

Commit 04a5b03

Browse files
committed
Adjust workflows to ensure build runs after generator has run
1 parent 7cc1bee commit 04a5b03

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/pr-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Build (PR)
33
on:
44
pull_request:
55
branches: [ master ]
6+
paths-ignore:
7+
- 'Generator/*.*'
8+
- 'Types/**/*.g.cs'
9+
- '.github/workflows/pr-generator.yml'
610

711
jobs:
812
build:

.github/workflows/pr-generator.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,26 @@ jobs:
6767
git commit -m "chore(types): update generated types (PR auto-update)"
6868
git push
6969
env:
70-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
72+
build:
73+
runs-on: ubuntu-latest
74+
needs: generate-and-commit
75+
76+
steps:
77+
- name: Checkout PR branch
78+
uses: actions/checkout@v4
79+
with:
80+
fetch-depth: 0
81+
ref: ${{ github.head_ref }}
82+
83+
- name: Setup .NET 9
84+
uses: actions/setup-dotnet@v4
85+
with:
86+
dotnet-version: '9.0.x'
87+
88+
- name: Restore dependencies
89+
run: dotnet restore
90+
91+
- name: Build solution
92+
run: dotnet build --no-restore --configuration Release

0 commit comments

Comments
 (0)