Skip to content

Commit

Permalink
Fix diff files check
Browse files Browse the repository at this point in the history
  • Loading branch information
vshampor committed Apr 13, 2023
1 parent 2b2063b commit e1fac72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/api_changes_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
id: diff
run: |
cd html_build/html/$API_DOC_HTML_ROOT_RELATIVE_PATH
find . -name "*.html" -exec diff -qrBZ {} $GITHUB_WORKSPACE/previous_doc_state/$API_DOC_HTML_ROOT_RELATIVE_PATH/{} \;
echo "changed_files=$(find . -name "*.html" -exec diff -qrBZ {} $GITHUB_WORKSPACE/previous_doc_state/$API_DOC_HTML_ROOT_RELATIVE_PATH/{} \;)" >> $GITHUB_OUTPUT
- uses: actions-ecosystem/action-add-labels@v1
if: ${{ steps.diff.outputs }} != ""
if: ${{ steps.diff.outputs.changed_files }} != ""
with:
labels: API
- uses: actions-ecosystem/action-remove-labels@v1
if: ${{ steps.diff.outputs }} == ""
if: ${{ steps.diff.outputs.changed_files }} == ""
with:
labels: API

0 comments on commit e1fac72

Please sign in to comment.