From 808baadef36dccaad34d704c67b85f07ac01de0f Mon Sep 17 00:00:00 2001 From: Bruno Amui Date: Tue, 3 Dec 2024 15:57:29 -0300 Subject: [PATCH] Update algolia_scraper.yml --- .github/workflows/algolia_scraper.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/algolia_scraper.yml b/.github/workflows/algolia_scraper.yml index 1ee1da7e9..674797cc1 100644 --- a/.github/workflows/algolia_scraper.yml +++ b/.github/workflows/algolia_scraper.yml @@ -13,10 +13,34 @@ jobs: runs-on: ubuntu-latest name: Scraper running steps: + - uses: actions/checkout@v2.1.0 + - name: 'get changed files' + uses: jitterbit/get-changed-files@v1 + id: generate-changed-files + with: + format: space-delimited + token: ${{ secrets.GITHUB_TOKEN }} + - name: Printing + run: | + echo "All:" + echo "${{ steps.generate-changed-files.outputs.all }}" + echo "Added:" + echo "${{ steps.generate-changed-files.outputs.added }}" + echo "Removed:" + echo "${{ steps.generate-changed-files.outputs.removed }}" + echo "Renamed:" + echo "${{ steps.generate-changed-files.outputs.renamed }}" + echo "Modified:" + echo "${{ steps.generate-changed-files.outputs.modified }}" + echo "Added+Modified:" + echo "${{ steps.generate-changed-files.outputs.added_modified }}" - uses: actions/checkout@v2 - name: Helpcenter Scraper uses: vtexdocs/devportal-docsearch-action@main with: algolia_application_id: '${{ secrets.ALGOLIA_APP_ID }}' algolia_api_key: ${{ secrets.ALGOLIA_WRITE_KEY }} - file: './configs/scraper_helpcenter.json' + file: './configs/scraper_helpcenter_files.json' + added: '${{ steps.generate-changed-files.outputs.added }}' + updated: '${{ steps.generate-changed-files.outputs.modified }}' + removed: '${{ steps.generate-changed-files.outputs.removed }}'