Skip to content

Commit 2832c1e

Browse files
committed
Fix workflow issue
1 parent eb9cb56 commit 2832c1e

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/maintenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: python3 scripts/generate_status_table.py
3333

3434
- name: Update PO file headers
35-
run: python3 scripts/update_po_headers.py --merge
35+
run: python3 scripts/update_po_headers.py --merge --no-last-translator
3636

3737
- name: Update TEAM.md contributor counts
3838
run: python3 scripts/team_stats.py --update-teammd

scripts/update_po_headers.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,11 @@ def main():
291291
action="store_true",
292292
help="show what would change without writing files",
293293
)
294+
parser.add_argument(
295+
"--no-last-translator",
296+
action="store_true",
297+
help="skip updating the Last-Translator: header field",
298+
)
294299
args = parser.parse_args()
295300

296301
files = collect_files(args.paths)
@@ -319,7 +324,9 @@ def main():
319324
new_comment = merge_comment_block(comment, translators)
320325
else:
321326
new_comment = update_comment_block(comment, translators)
322-
rebuilt = update_header_entry(entry, last, None)
327+
rebuilt = update_header_entry(
328+
entry, None if args.no_last_translator else last, None
329+
)
323330
if rebuilt is not None:
324331
new_entry = rebuilt
325332

0 commit comments

Comments
 (0)