Skip to content

Commit 58acb4d

Browse files
committed
ci: Simplify rollback logic for uncommitted changes in CI workflow
1 parent 963e3d5 commit 58acb4d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,7 @@ jobs:
5353
run: dart format --output=none --set-exit-if-changed packages/dart
5454
- name: Rollback uncommitted changes for Fix Bug mocks
5555
run: |
56-
git status --porcelain
57-
if ($?) {
58-
echo "There are uncommitted changes. Rolling back the following files:"
59-
git checkout -- test/src/network/parse_query_test.mocks.dart test/src/objects/parse_object/parse_object_test.mocks.dart
60-
} else {
61-
echo "No uncommitted changes found."
62-
}
56+
git checkout -- test/src/network/parse_query_test.mocks.dart test/src/objects/parse_object/parse_object_test.mocks.dart
6357
- name: Publish dry run
6458
run: cd packages/dart && dart pub publish --dry-run
6559
- name: Run tests

0 commit comments

Comments
 (0)