mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
ci: Block changes to crowdin-generated files (#3427)
* ci: Add workflow to block crowdin changes * Add a change which should not block the PR (will be reverted later) * Repair broken workflows * Add a change which should stop the PR * Revert "Add a change which should not block the PR (will be reverted later)" This reverts commiteafb5eaed1. * Revert "Add a change which should stop the PR" This reverts commitbfe6e7a39d.
This commit is contained in:
@@ -14,4 +14,16 @@ jobs:
|
|||||||
- name: Setup | Checkout
|
- name: Setup | Checkout
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v2.4.0
|
||||||
- name: Docs | Format
|
- name: Docs | Format
|
||||||
uses: dprint/check@v2.0
|
uses: dprint/check@v2.0
|
||||||
|
|
||||||
|
# If this is not a Crowdin PR, block changes to translated documentation
|
||||||
|
block-crowdin:
|
||||||
|
name: Block Translated Changes
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Prevent File Change
|
||||||
|
uses: xalvarez/prevent-file-change-action@v1.2.0
|
||||||
|
if: ${{ env.GITHUB_HEAD_REF != 'i18n_master' }}
|
||||||
|
with:
|
||||||
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
pattern: docs/[a-z][a-z][a-z]?-[A-Z][A-Z]?/.*
|
||||||
|
|||||||
Reference in New Issue
Block a user