We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56ea252 commit d6d88a8Copy full SHA for d6d88a8
scripts/update_sha.py
@@ -49,7 +49,7 @@ def update_sha(sha):
49
50
def main():
51
args = parse_args()
52
- sha = get_sha(args.branch)
+ sha = args.branch if args.no_resolve else get_sha(args.branch)
53
update_sha(sha)
54
55
@@ -58,6 +58,12 @@ def parse_args():
58
description="Updates the SHA in the workflow file"
59
)
60
parser.add_argument("-b", "--branch", help="branch to use")
61
+ parser.add_argument(
62
+ "-n",
63
+ "--no-resolve",
64
+ help="don't resolve branch to sha",
65
+ action="store_true",
66
+ )
67
return parser.parse_args()
68
69
0 commit comments