Commit 549bc0a
committed
refactor: use actions/checkout ref parameter instead of separate git commands
Much cleaner approach using the built-in ref parameter of actions/checkout
to directly checkout the target branch instead of manual git commands.
Uses: ref: ${{ inputs.target-branch || github.ref }}
- If target-branch is provided, checkout that branch
- Otherwise, use the default behavior (github.ref)1 parent 9ab4c43 commit 549bc0a
1 file changed
Lines changed: 2 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 111 | + | |
118 | 112 | | |
119 | 113 | | |
120 | 114 | | |
| |||
241 | 235 | | |
242 | 236 | | |
243 | 237 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 238 | + | |
251 | 239 | | |
252 | 240 | | |
253 | 241 | | |
| |||
0 commit comments