-
Notifications
You must be signed in to change notification settings - Fork 35
53 lines (45 loc) · 1.56 KB
/
single_search.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
47
48
49
50
51
52
53
name: SingleSearch
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
start_date:
description: "Start date, YYYY or YYYY-MM or YYYY-MM-DD"
required: true
end_date:
description: "End date, YYYY or YYYY-MM or YYYY-MM-DD"
required: true
search_str:
description: "String to search for"
required: true
default: "cve-2"
extras:
description: "Additional CLI args (optional)"
required: false
jobs:
search:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: setup env
uses: ./.github/actions/setup_my_env
- name: do_search
uses: ./.github/actions/single_search
with:
start_date: ${{ github.event.inputs.start_date }}
end_date: ${{ github.event.inputs.end_date }}
search_str: ${{ github.event.inputs.search_str }}
extras: ${{ github.event.inputs.extras }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: add and commit
uses: ./.github/actions/commit_results
with:
commit_msg: ${{ github.workflow }} search ${{ github.event.inputs.start_date }}..${{ github.event.inputs.end_date }} ${{ github.event.inputs.search_str }}
- name: push result
uses: ./.github/actions/pull_rebase_push_retry