feat(tools): hide string action (#42547)

Create an action that allows us to hide a specific string during
the crowdin upload process.
This commit is contained in:
Nicholas Carrigan (he/him)
2021-06-17 11:24:56 -07:00
committed by GitHub
parent 7857c3932b
commit 643f34fe3a
4 changed files with 58 additions and 1 deletions

View File

@@ -61,3 +61,13 @@ jobs:
CROWDIN_API_URL: 'https://freecodecamp.crowdin.com/api/v2/'
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_CURRICULUM }}
- name: Hide Example Link in Nest an Anchor Element challenge
uses: ./tools/crowdin/actions/hide-specific-string
with:
filename: '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.
env:
CROWDIN_API_URL: 'https://freecodecamp.crowdin.com/api/v2/'
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_CURRICULUM }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}