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 404741b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/api_changes_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ 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/{} \;
CHANGED_FILES=$(find . -name "*.html" -exec diff -qrBZ {} $GITHUB_WORKSPACE/previous_doc_state/$API_DOC_HTML_ROOT_RELATIVE_PATH/{} \;)
echo ${CHANGED_FILES}
echo "changed_files=${CHANGED_FILES}" >> $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 404741b

Please sign in to comment.