-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (49 loc) · 2.01 KB
/
pipeline.yaml
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
54
55
name: Pipeline
on:
workflow_dispatch:
inputs:
transform_job:
description: "Job URL"
publish_job:
description: "Job URL"
to:
description: "To"
default: "graph-store"
jobs:
pipeline:
runs-on: ubuntu-22.04
env:
TS_NODE_TRANSPILE_ONLY: "true"
AUTH_RUNNER_CLIENT_ID: ${{ secrets.AUTH_RUNNER_CLIENT_ID }}
AUTH_RUNNER_ISSUER: ${{ secrets.AUTH_RUNNER_ISSUER }}
AUTH_RUNNER_CLIENT_SECRET: ${{ secrets.REF_AUTH_RUNNER_CLIENT_SECRET }}
GRAPH_STORE_ENDPOINT: ${{ secrets.GRAPH_STORE_ENDPOINT }}
GRAPH_STORE_USER: ${{ secrets.GRAPH_STORE_USER }}
GRAPH_STORE_PASSWORD: ${{ secrets.GRAPH_STORE_PASSWORD }}
PUBLISH_GRAPH_STORE_ENDPOINT: ${{ secrets.GRAPH_STORE_ENDPOINT }}
PUBLISH_GRAPH_STORE_USER: ${{ secrets.GRAPH_STORE_USER }}
PUBLISH_GRAPH_STORE_PASSWORD: ${{ secrets.GRAPH_STORE_PASSWORD }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_ENVIRONMENT: ${{ secrets.SENTRY_ENVIRONMENT }}
EXECUTION_URL: "https://${{ github.repository }}/actions/runs/${{ github.run_id }}"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- run: yarn install --ci --prefer-offline
- name: transform pipeline
if: github.event.inputs.transform_job != ''
run: yarn ts-node index.ts transform --job "${{ github.event.inputs.transform_job }}" --execution-url ${{ env.EXECUTION_URL }} --to ${{ github.event.inputs.to }} --debug
working-directory: cli
- name: publish pipeline
if: github.event.inputs.publish_job != ''
run: yarn ts-node index.ts publish --job "${{ github.event.inputs.publish_job }}" --execution-url ${{ env.EXECUTION_URL }} --debug
working-directory: cli
- name: Output artifact
if: github.event.inputs.to == 'filesystem'
uses: actions/upload-artifact@v3
with:
name: transformed.nt
path: cli/output/transformed.nt