-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (43 loc) · 1.26 KB
/
ubertemplate.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
name: ubertemplate
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
workflow_dispatch:
concurrency:
group: ubertemplate-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
data-command:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: ["1.22.x"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: extractions/setup-just@v1
- name: Build everything
run: just build
- name: Copy template to the temp dir
run: cp .github/ubertemplate/*.fabric ${{ runner.temp }}/
- name: Install plugins
run: |
cd dist
./fabric install --source-dir ${{ runner.temp }}/
- name: Run commands
run: |
export FABRIC_PLUGIN_DIR=$(pwd)/dist/plugins
cd dist
./fabric data document.ubertemplate.data.rss.blackstork_blog --source-dir ${{ runner.temp }}
./fabric data document.ubertemplate.data.nist_nvd_cves.cves --source-dir ${{ runner.temp }}