Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflows to use github-issues-scraper after docs-scraper on deploy #404

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion .github/workflows/gh-pages-scraping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: .vuepress/dist

scrap-docs:
scrape-docs:
needs: build-deploy
runs-on: ubuntu-18.04
steps:
Expand All @@ -47,3 +47,30 @@ jobs:
-e MEILISEARCH_API_KEY=$API_KEY \
-v $CONFIG_FILE_PATH:/docs-scraper/config.json \
getmeili/docs-scraper:v0.9.0 pipenv run ./docs_scraper config.json

scrape-github:
needs: scrape-docs
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Connect to GitHub docker registry
uses: azure/docker-login@v1
with:
login-server: docker.pkg.github.com
username: ${{ secrets.GITHUB_DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.GITHUB_DOCKER_REGISTRY_PASSWORD }}
- name: Run github-issues-scraper
env:
HOST_URL: ${{ secrets.MEILISEARCH_HOST_URL }}
API_KEY: ${{ secrets.MEILISEARCH_API_KEY }}
GH_LOGIN: ${{ secrets.GH_LOGIN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPOSITORY: meilisearch/meilisearch
run: |
docker run -t --rm \
-e GH_LOGIN=$GH_LOGIN \
-e GH_TOKEN=$GH_TOKEN \
-e GH_REPOSITORY=$GH_REPOSITORY \
-e MEILISEARCH_URL=$HOST_URL \
-e MEILISEARCH_API_KEY=$API_KEY \
docker.pkg.github.com/meilisearch/github-issues-scraper/github-issues-scraper:v0.1.2