Skip to content

Commit 4d9a6e2

Browse files
committed
remove typer dep from detect_auto_updates.py
1 parent 6f6d14e commit 4d9a6e2

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/reset_pending_auto_update.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v3
10-
- name: install script deps
11-
run: pip install typer
1210
- id: detect_auto_updates
1311
run: python scripts/detect_auto_updates.py auto-update-
1412
- name: Delete auto-update-* branches

scripts/detect_auto_updates.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
import argparse
12
import subprocess
23
from pprint import pprint
34

4-
import typer
5-
65
from bare_utils import set_gh_actions_output
76

87

@@ -19,4 +18,10 @@ def main(prefix: str):
1918

2019

2120
if __name__ == "__main__":
22-
typer.run(main)
21+
parser = argparse.ArgumentParser()
22+
parser.add_argument(
23+
"prefix",
24+
help="prefix to identify branches, e.g. 'auto-update-'",
25+
)
26+
args = parser.parse_args()
27+
main(args.prefix)

0 commit comments

Comments
 (0)