mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-09 16:01:39 -04:00
fix(GHA): pin crowdin actions to SHA commits (#66137)
This commit is contained in:
committed by
GitHub
parent
daa1bf733c
commit
5f3bb979cb
28
.github/workflows/crowdin-download.client-ui.yml
vendored
28
.github/workflows/crowdin-download.client-ui.yml
vendored
@@ -23,14 +23,14 @@ jobs:
|
||||
token: ${{ secrets.CROWDIN_CAMPERBOT_PAT }}
|
||||
|
||||
- name: Generate Crowdin Config
|
||||
uses: freecodecamp/crowdin-action@main
|
||||
uses: freecodecamp/crowdin-action@36a78cbf92f5a6c05a3a32dc8bf434a19a7c59e2 # main
|
||||
env:
|
||||
PLUGIN: 'generate-config'
|
||||
PROJECT_NAME: 'client'
|
||||
|
||||
##### Download Chinese #####
|
||||
- name: Crowdin Download Chinese Translations
|
||||
uses: crowdin/github-action@master
|
||||
uses: crowdin/github-action@8818ff65bfc4322384f983ea37e3926948c11745 # v2.15.0
|
||||
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
||||
with:
|
||||
# uploads
|
||||
@@ -59,14 +59,14 @@ jobs:
|
||||
|
||||
# Convert Simplified Chinese to Traditional #
|
||||
- name: Convert Chinese
|
||||
uses: freecodecamp/crowdin-action@main
|
||||
uses: freecodecamp/crowdin-action@36a78cbf92f5a6c05a3a32dc8bf434a19a7c59e2 # main
|
||||
env:
|
||||
PLUGIN: 'convert-chinese'
|
||||
FILE_PATHS: '["client/i18n/locales/chinese"]'
|
||||
|
||||
##### Download Espanol #####
|
||||
- name: Crowdin Download Espanol Translations
|
||||
uses: crowdin/github-action@master
|
||||
uses: crowdin/github-action@8818ff65bfc4322384f983ea37e3926948c11745 # v2.15.0
|
||||
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
||||
with:
|
||||
# uploads
|
||||
@@ -95,7 +95,7 @@ jobs:
|
||||
|
||||
##### Download Italian #####
|
||||
- name: Crowdin Download Italian Translations
|
||||
uses: crowdin/github-action@master
|
||||
uses: crowdin/github-action@8818ff65bfc4322384f983ea37e3926948c11745 # v2.15.0
|
||||
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
||||
with:
|
||||
# uploads
|
||||
@@ -124,7 +124,7 @@ jobs:
|
||||
|
||||
##### Download Brazilian Portuguese #####
|
||||
- name: Crowdin Download Portuguese (Brazilian) Translations
|
||||
uses: crowdin/github-action@master
|
||||
uses: crowdin/github-action@8818ff65bfc4322384f983ea37e3926948c11745 # v2.15.0
|
||||
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
||||
with:
|
||||
# uploads
|
||||
@@ -153,7 +153,7 @@ jobs:
|
||||
|
||||
##### Download Ukrainian #####
|
||||
- name: Crowdin Download Ukrainian Translations
|
||||
uses: crowdin/github-action@master
|
||||
uses: crowdin/github-action@8818ff65bfc4322384f983ea37e3926948c11745 # v2.15.0
|
||||
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
||||
with:
|
||||
# uploads
|
||||
@@ -182,7 +182,7 @@ jobs:
|
||||
|
||||
##### Download Japanese #####
|
||||
- name: Crowdin Download Japanese Translations
|
||||
uses: crowdin/github-action@master
|
||||
uses: crowdin/github-action@8818ff65bfc4322384f983ea37e3926948c11745 # v2.15.0
|
||||
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
||||
with:
|
||||
# uploads
|
||||
@@ -211,7 +211,7 @@ jobs:
|
||||
|
||||
##### Download German #####
|
||||
- name: Crowdin Download German Translations
|
||||
uses: crowdin/github-action@master
|
||||
uses: crowdin/github-action@8818ff65bfc4322384f983ea37e3926948c11745 # v2.15.0
|
||||
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
||||
with:
|
||||
# uploads
|
||||
@@ -240,7 +240,7 @@ jobs:
|
||||
|
||||
##### Download Swahili #####
|
||||
- name: Crowdin Download Swahili Translations
|
||||
uses: crowdin/github-action@master
|
||||
uses: crowdin/github-action@8818ff65bfc4322384f983ea37e3926948c11745 # v2.15.0
|
||||
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
||||
with:
|
||||
# uploads
|
||||
@@ -269,7 +269,7 @@ jobs:
|
||||
|
||||
##### Download Korean #####
|
||||
- name: Crowdin Download Korean Translations
|
||||
uses: crowdin/github-action@master
|
||||
uses: crowdin/github-action@8818ff65bfc4322384f983ea37e3926948c11745 # v2.15.0
|
||||
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
||||
with:
|
||||
# uploads
|
||||
@@ -307,14 +307,14 @@ jobs:
|
||||
###### Lowercase directory names #####
|
||||
|
||||
- name: Lowercase Directories
|
||||
uses: freecodecamp/crowdin-action@main
|
||||
uses: freecodecamp/crowdin-action@36a78cbf92f5a6c05a3a32dc8bf434a19a7c59e2 # main
|
||||
env:
|
||||
PLUGIN: 'lowercase-directories'
|
||||
FILE_PATH: 'client/i18n/locales'
|
||||
# Crowdin translators might have the directories
|
||||
# Create Commit
|
||||
- name: Commit Changes
|
||||
uses: freecodecamp/crowdin-action@main
|
||||
uses: freecodecamp/crowdin-action@36a78cbf92f5a6c05a3a32dc8bf434a19a7c59e2 # main
|
||||
env:
|
||||
PLUGIN: 'commit-changes'
|
||||
GH_USERNAME: 'camperbot'
|
||||
@@ -326,7 +326,7 @@ jobs:
|
||||
# All languages should go ABOVE this. #
|
||||
|
||||
- name: Create PR
|
||||
uses: freecodecamp/crowdin-action@main
|
||||
uses: freecodecamp/crowdin-action@36a78cbf92f5a6c05a3a32dc8bf434a19a7c59e2 # main
|
||||
env:
|
||||
PLUGIN: 'pull-request'
|
||||
GH_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_PAT }}
|
||||
|
||||
@@ -21,13 +21,13 @@ jobs:
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Generate Crowdin Config
|
||||
uses: freecodecamp/crowdin-action@main
|
||||
uses: freecodecamp/crowdin-action@36a78cbf92f5a6c05a3a32dc8bf434a19a7c59e2 # main
|
||||
env:
|
||||
PLUGIN: 'generate-config'
|
||||
PROJECT_NAME: 'client'
|
||||
|
||||
- name: Crowdin Upload
|
||||
uses: crowdin/github-action@master
|
||||
uses: crowdin/github-action@8818ff65bfc4322384f983ea37e3926948c11745 # v2.15.0
|
||||
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
||||
with:
|
||||
# uploads
|
||||
|
||||
12
.github/workflows/crowdin-upload.curriculum.yml
vendored
12
.github/workflows/crowdin-upload.curriculum.yml
vendored
@@ -21,13 +21,13 @@ jobs:
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
||||
- name: Generate Crowdin Config
|
||||
uses: freecodecamp/crowdin-action@main
|
||||
uses: freecodecamp/crowdin-action@36a78cbf92f5a6c05a3a32dc8bf434a19a7c59e2 # main
|
||||
env:
|
||||
PLUGIN: 'generate-config'
|
||||
PROJECT_NAME: 'curriculum'
|
||||
|
||||
- name: Crowdin Upload
|
||||
uses: crowdin/github-action@master
|
||||
uses: crowdin/github-action@8818ff65bfc4322384f983ea37e3926948c11745 # v2.15.0
|
||||
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
||||
with:
|
||||
# uploads
|
||||
@@ -50,25 +50,25 @@ jobs:
|
||||
# dryrun_action: true
|
||||
|
||||
- name: Remove deleted files
|
||||
uses: freecodecamp/crowdin-action@main
|
||||
uses: freecodecamp/crowdin-action@36a78cbf92f5a6c05a3a32dc8bf434a19a7c59e2 # main
|
||||
env:
|
||||
PLUGIN: 'remove-deleted-files'
|
||||
FILE_PATHS: '["curriculum/challenges/english", "curriculum/dictionaries/english"]'
|
||||
|
||||
- name: Hide Non-Translated Strings
|
||||
uses: freecodecamp/crowdin-action@main
|
||||
uses: freecodecamp/crowdin-action@36a78cbf92f5a6c05a3a32dc8bf434a19a7c59e2 # main
|
||||
env:
|
||||
PLUGIN: 'hide-curriculum-strings'
|
||||
|
||||
- name: Hide a String
|
||||
uses: freecodecamp/crowdin-action@main
|
||||
uses: freecodecamp/crowdin-action@36a78cbf92f5a6c05a3a32dc8bf434a19a7c59e2 # main
|
||||
env:
|
||||
PLUGIN: 'hide-string'
|
||||
FILE_NAME: 'basic-html-and-html5/nest-an-anchor-element-within-a-paragraph.md'
|
||||
STRING_CONTENT: Here's a <a href="https://www.freecodecamp.org" target="_blank" mark="crwd-mark">link to www.freecodecamp.org</a> for you to follow.
|
||||
|
||||
- name: Unhide Title of Use && For a More Concise Conditional
|
||||
uses: freecodecamp/crowdin-action@main
|
||||
uses: freecodecamp/crowdin-action@36a78cbf92f5a6c05a3a32dc8bf434a19a7c59e2 # main
|
||||
env:
|
||||
PLUGIN: 'unhide-string'
|
||||
FILE_NAME: 'react/use--for-a-more-concise-conditional.md'
|
||||
|
||||
Reference in New Issue
Block a user