Commit b49d820
committed
update-go-version: Don't add the go version if key is not in the workflow
If this script is run then all the workflow file have go version details
even the one which doesn't need. This PR first check if the workflow
file have go version key then only update it otherwise not.
- https://mikefarah.gitbook.io/yq/operators/has1 parent 6ee5d78 commit b49d820
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
0 commit comments