Skip to content

Commit b068c35

Browse files
committed
refactor(workflow): modularize no-operation step
• Replaced inline exit 0 with a dedicated noop.sh script for better modularity and readability. • Updated workflow configuration to call noop.sh, ensuring consistency in no-operation handling. • Improved maintainability by isolating no-operation logic in a separate file.
1 parent c80cd94 commit b068c35

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ jobs:
1818
uses: pyTooling/Actions/with-post-step@9ceefdbf5dceae8c441fc393ed82344c7ca8bbdb # v3.1.1
1919
with:
2020
main: |
21-
# Do nothing
22-
exit 0
21+
sh noop.sh
2322
post: |
2423
sh post_check.sh
2524
- name: Setup SSH key

noop.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env sh
2+
3+
exit 0

0 commit comments

Comments
 (0)