Skip to content

Commit

Permalink
Add worklfows to use github-issues-scraper after docs-scraper on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tpayet committed Jun 16, 2020
1 parent c027ba3 commit fc0ad4c
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 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,27 @@ 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: scrap-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 }}
run: |
docker run -t --rm \
-e GH_LOGIN=$GITHUB_LOGIN \
-e GH_TOKEN=$GITHUB_TOKEN \
-e GH_REPOSITORY=meilisearch/meilisearch \
-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

0 comments on commit fc0ad4c

Please sign in to comment.