Skip to content

Commit c3e2704

Browse files
committed
Also run format and update-patch commands
1 parent 536b52a commit c3e2704

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,26 @@ jobs:
162162
echo "C:\Program Files (x86)\dfetch" >> $env:GITHUB_PATH
163163
shell: pwsh
164164

165+
- run: |
166+
git init --initial-branch=main
167+
git config user.name "John Doe"
168+
git config user.email "john.doe@example.com"
169+
git commit -m "Initial commit"
170+
echo "An extra line" >> cpputest/src/README.md
171+
git add cpputest/src/README.md
172+
git commit -m "Update README.md"
165173
- run: dfetch init
166174
- run: dfetch environment
167175
- run: dfetch validate
168176
- run: dfetch check
169177
- run: dfetch update
170178
- run: dfetch update
179+
- run: |
180+
echo "An extra line" >> cpputest/src/README.md
181+
git add cpputest/src/README.md
182+
git commit -m "Update README.md"
183+
- run: dfetch update-patch
184+
- run: dfetch format-patch
171185
- run: dfetch report -t sbom
172186

173187

.github/workflows/run.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
- run: dfetch check
4343
- run: dfetch update
4444
- run: dfetch update
45+
- run: dfetch update-patch
46+
- run: dfetch format-patch
4547
- run: dfetch report -t sbom
4648
- name: Dfetch SARIF Check
4749
uses: ./
@@ -113,6 +115,8 @@ jobs:
113115
- run: dfetch check
114116
- run: dfetch update
115117
- run: dfetch update
118+
- run: dfetch update-patch
119+
- run: dfetch format-patch
116120
- run: dfetch report -t sbom
117121

118122
- name: Dfetch SARIF Check

0 commit comments

Comments
 (0)