Merge pull request #664 from Chia-Network/dependabot/github_actions/c… #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push strings to Crowdin | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
push-to-crowdin: | |
runs-on: [k8s-public] | |
container: node:18 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Vault Login | |
uses: Chia-Network/actions/vault/login@main | |
with: | |
vault_url: ${{ secrets.VAULT_URL }} | |
role_name: github-chia-docs | |
- name: Get secrets from vault | |
uses: hashicorp/vault-action@v3 | |
with: | |
url: ${{ secrets.VAULT_URL }} | |
token: ${{ env.VAULT_TOKEN }} | |
secrets: | | |
secret/data/crowdin token | CROWDIN_PERSONAL_TOKEN; | |
secret/data/crowdin project-id-docs | CROWDIN_PROJECT_ID; | |
- name: crowdin action | |
uses: crowdin/github-action@v2.2.0 | |
with: | |
upload_sources: true | |
upload_translations: false | |
download_translations: false | |
crowdin_branch_name: ${{ github.ref_name }} # The "branch" (folder) in crowdin to source from. Match the branch name in GH | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |