Skip to content

Commit d6d88a8

Browse files
authored
Update update_sha.py
1 parent 56ea252 commit d6d88a8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/update_sha.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def update_sha(sha):
4949

5050
def main():
5151
args = parse_args()
52-
sha = get_sha(args.branch)
52+
sha = args.branch if args.no_resolve else get_sha(args.branch)
5353
update_sha(sha)
5454

5555

@@ -58,6 +58,12 @@ def parse_args():
5858
description="Updates the SHA in the workflow file"
5959
)
6060
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+
)
6167
return parser.parse_args()
6268

6369

0 commit comments

Comments
 (0)