Skip to content

Commit 1d450e5

Browse files
authored
Merge pull request #5 from pre-commit-ci/more-output
add a little more output to the action
2 parents 1282390 + 51cc97e commit 1d450e5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

bin/main

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ def main(argv: Sequence[str] | None = None) -> int:
264264
print('nothing to do: no changes!')
265265
return 0
266266

267+
print('fetching pr...')
267268
head = _fetch_pr(src_repo=args.src_repo, pr=args.pr)
268269

269270
with tempfile.TemporaryDirectory() as clone:
@@ -280,6 +281,7 @@ def main(argv: Sequence[str] | None = None) -> int:
280281
print('would create artifact with data:')
281282
print(json.dumps(data, indent=2))
282283
else:
284+
print('saving artifact...')
283285
_save_artifact(
284286
data=data,
285287
run_id=args.run_id,
@@ -288,6 +290,7 @@ def main(argv: Sequence[str] | None = None) -> int:
288290
)
289291
with open(os.environ['GITHUB_ENV'], 'a+') as f:
290292
f.write('PRE_COMMIT_CI_LITE_ARTIFACT=true\n')
293+
print('artifact published!')
291294

292295
return 0
293296

0 commit comments

Comments
 (0)