Skip to content

Commit

Permalink
Create algolia_scraper.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoamui authored Dec 3, 2024
1 parent 3eb5bc7 commit 2f3d916
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/algolia_scraper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Help Center Scraper

on:
pull_request:
branches:
- main
types: [closed]

workflow_dispatch:

jobs:
scrape-files:
runs-on: ubuntu-latest
name: Scraper running
steps:
- uses: actions/[email protected]
- 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_files.json'
added: '${{ steps.generate-changed-files.outputs.added }}'
updated: '${{ steps.generate-changed-files.outputs.modified }}'
removed: '${{ steps.generate-changed-files.outputs.removed }}'

0 comments on commit 2f3d916

Please sign in to comment.