1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-16 14:53:28 +02:00
comprehensive-rust/.github/workflows
Noam Zaks b1cd19ed20
Added action to prevent changing msgid (#1351)
See discussion in #1344.

This checks that all `.po` files changed in pull requests either contain
changes in POT-Creation-Date (i.e. are run by the specific tool which
should change msgid's), or don't change msgid's (by checking that each
line changed is NOT between msgid and msgstr)

I have tested this on my fork, see [valid
changes](https://github.com/noamzaks/comprehensive-rust/pull/1/files)
where the action passes, and [invalid
changes](https://github.com/noamzaks/comprehensive-rust/pull/2/files)
where it doesn't.

The action also has output for failing/passing:

[passing](https://github.com/noamzaks/comprehensive-rust/actions/runs/6488171290/job/17620037473?pr=1)

[failing](https://github.com/noamzaks/comprehensive-rust/actions/runs/6488175171/job/17620050716?pr=2)
2023-10-11 23:31:51 +02:00
..
install-mdbook Update to mdbook-i18n-helpers 0.2.4 (#1263) 2023-10-01 23:01:22 -07:00
setup-rust-cache Remove unnecessary cache key (#586) 2023-04-27 13:25:02 -04:00
build.yml Add typos to CI (#1158) 2023-09-05 20:21:59 +00:00
labeler.yml Automatically format YAML, CSS, and JS files (#1272) 2023-10-02 14:48:00 +09:00
prevent-msgid.py Added action to prevent changing msgid (#1351) 2023-10-11 23:31:51 +02:00
prevent-msgid.yml Added action to prevent changing msgid (#1351) 2023-10-11 23:31:51 +02:00
publish.yml Sync src/ with date in PO file when publishing (#1243) 2023-09-25 09:52:39 +02:00