-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (34 loc) · 1023 Bytes
/
crawl.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
name: Crawl Repos
on:
schedule:
- cron: '0 7 * * *'
workflow_dispatch:
env:
DB_NAME: metadata.sqlite3
METADATA_DIR: metadata
jobs:
crawl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Crawl
id: crawl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./scripts/crawl.sh ${{ env.DB_NAME }} ${{ env.METADATA_DIR }}
- name: Generate products
run: |
./scripts/generate-products.sh
- name: Create PR
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
add-paths: |
${{ env.DB_NAME }}
${{ env.METADATA_DIR }}
branch: "metadata-update"
author: "LaunchDarklyReleaseBot <LaunchDarklyReleaseBot@launchdarkly.com>"
committer: "LaunchDarklyReleaseBot <LaunchDarklyReleaseBot@launchdarkly.com>"
title: "feat: update metadata"
commit-message: "Updates SDK metadata"