Skip to content

Commit c5a52a5

Browse files
authored
Run dotnet restore prior to formatting (#86)
Fixes "Required references did not load for PasteIntoFile or referenced project."
1 parent 794c5d9 commit c5a52a5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/format.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
# Install pre-commit
3737
python3 -m pip install pre-commit
3838
pre-commit install
39+
# Restore
40+
dotnet restore
3941
# Format files
4042
FILES=$(git diff --name-only HEAD origin/$GITHUB_BASE_REF | tr '\n' ' ')
4143
echo $FILES

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-python@v3
13+
- name: Init
14+
run: dotnet restore
1315
- uses: pre-commit/[email protected]
1416
with:
1517
extra_args: --all-files --hook-stage=manual

0 commit comments

Comments
 (0)