Skip to content

Commit

Permalink
Add crawl to github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Hemslo Wang <[email protected]>
  • Loading branch information
hemslo committed Jan 27, 2024
1 parent 9387839 commit 9de7707
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/crawl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: crawl
on:
workflow_dispatch:
inputs:
sitemap-url:
description: 'Sitemap URL'
required: true

jobs:
crawl:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
env:
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
INGEST_URL: ${{ secrets.INGEST_URL }}
defaults:
run:
working-directory: /code
shell: bash
steps:
- name: crawl
run: python -m app.client.crawl --sitemap-url ${{ github.event.inputs.sitemap-url }}

0 comments on commit 9de7707

Please sign in to comment.