Commit bbb4e4e
authored
🩹 [Patch]: Add try/finally blocks (#38)
## Description
This pull request includes changes to the `action.yml` and the addition
of a new script file to improve the robustness and cleanliness of the
GitHub Action's execution.
Improvements to GitHub Action execution:
* `action.yml`: Modified the `run` block to include a `try` block for
executing scripts and a `finally` block to ensure the cleanup script is
always executed. This change enhances the robustness of the script
execution.
Addition of cleanup script:
* `scripts/clean.ps1`: Added a new PowerShell script to handle cleanup
tasks, including logging debug information and resetting environment
variables. This ensures that the environment is properly cleaned up
after the action runs.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [x] 🩹 [Patch]
- [ ] 1 parent 18e354f commit bbb4e4e
2 files changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments