1
0
mirror of https://github.com/go-task/task.git synced 2025-01-04 03:48:02 +02:00

GitHub Action: Fix upload documents workflow

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.
This commit is contained in:
Andrey Nering 2023-03-30 22:00:47 -03:00
parent ce14f10297
commit c229570bd9

View File

@ -13,8 +13,8 @@ jobs:
- uses: actions/checkout@v2
- name: Verify changed files
uses: tj-actions/verify-changed-files@v14
id: verify-changed-files
uses: tj-actions/changed-files@v35
id: changed-files
with:
files: |
docs/docs
@ -28,7 +28,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload source documents
if: steps.verify-changed-files.outputs.files_changed == 'true'
if: steps.changed-files-specific.outputs.any_changed == 'true'
run: task crowdin:push
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}