mirror of
https://github.com/go-task/task.git
synced 2026-06-24 21:26:04 +00:00
The previous used action verified if any changes happened *during execution* (via a `git diff` call). Changing to the one that is properly able to check changes in the last commit.
36 lines
864 B
YAML
36 lines
864 B
YAML
name: Upload Source Documents
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
push_files_to_crowdin:
|
|
name: Push files to Crowdin
|
|
if: github.repository == 'go-task/task'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Verify changed files
|
|
uses: tj-actions/changed-files@v35
|
|
id: changed-files
|
|
with:
|
|
files: |
|
|
docs/docs
|
|
docs/blog
|
|
docs/i18n/en
|
|
|
|
- name: Install Task
|
|
uses: arduino/setup-task@v1
|
|
with:
|
|
version: 3.x
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Upload source documents
|
|
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
|
run: task crowdin:push
|
|
env:
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
|
working-directory: ./docs
|