-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (43 loc) · 1.56 KB
/
algolia_scraper.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 }}'