obs-studio/.github/workflows/crowdin-sync-upload.yml
Ryan Foster 2f974da551 CI: Update GitHub Actions
Update all of our GitHub Actions to the latest versions. Notably, the
update to actions/cache gives support for the 10GB GitHub Actions cache,
and the updates for the other first-party actions are required for
future M1 runner support.
2022-03-21 13:46:40 -04:00

27 lines
762 B
YAML

name: "Crowdin Sync: Upload English strings"
on:
push:
branches:
- master
paths:
- "**/en-US.ini"
jobs:
crowdin-sync-upload:
name: Upload English strings
runs-on: ubuntu-latest
env:
CROWDIN_PAT: ${{ secrets.CROWDIN_SYNC_CROWDIN_PAT }}
GITHUB_EVENT_BEFORE: ${{ github.event.before }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 100
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Download Script
run: wget -P ./other/ https://raw.githubusercontent.com/obsproject/crowdin-synchronization/0.1.2/dist/upload.mjs
- name: Upload English strings to Crowdin
run: node ./other/upload.mjs