Skip to content

Commit

Permalink
Merge pull request #15 from vtexdocs/feat/scrape-updated-files
Browse files Browse the repository at this point in the history
Docsearch Scraper
  • Loading branch information
brunoamui authored Dec 3, 2024
2 parents 178caa3 + 7436b56 commit 2aa4c27
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/docsearch-scraper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Help Center Files Scraper

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

jobs:
scrape-files:
runs-on: ubuntu-latest
name: Scraper running
steps:
- uses: actions/checkout@v4
- name: Get changed markdown files
id: changed-files
uses: tj-actions/changed-files@v43
with:
include_all_old_new_renamed_files: "true"
files: |
**.md
**.mdx
- name: Printing
run: |
echo "All:"
echo "${{ steps.changed-files.outputs.all_changed_files }}"
echo "Added:"
echo "${{ steps.changed-files.outputs.added_files }}"
echo "Deleted:"
echo "${{ steps.changed-files.outputs.deleted_files }}"
echo "Modified:"
echo "${{ steps.changed-files.outputs.modified_files }}"
echo "Renamed:"
echo "${{ steps.changed-files.outputs.all_old_new_renamed_files }}"
- 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.changed-files.outputs.added_files }}'
updated: '${{ steps.changed-files.outputs.modified_files }}'
removed: '${{ steps.changed-files.outputs.deleted_files }}'
renamed: '${{ steps.changed-files.outputs.all_old_new_renamed_files }}'

0 comments on commit 2aa4c27

Please sign in to comment.