Skip to content

Commit 841cc98

Browse files
committed
Setup draco as telescopium content repository
1 parent 17064d1 commit 841cc98

4 files changed

Lines changed: 68 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
pull-requests: write
11+
12+
jobs:
13+
pipeline:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: Taucher2003/GitLab-Pipeline-Action@1.14.4
17+
name: Run pipeline
18+
id: pipeline
19+
with:
20+
GL_SERVER_URL: https://gitlab.com
21+
GL_PROJECT_ID: '81430101'
22+
GL_RUNNER_TOKEN: ${{ secrets.GL_RUNNER_TOKEN }}
23+
GL_API_TOKEN: ${{ secrets.GL_API_TOKEN }}
24+
SHOW_JOB_LOGS: all
25+
OVERRIDE_GITHUB_SHA: ${{ github.event_name == 'push' && github.sha || github.event.pull_request.head.sha }}
26+
OVERRIDE_GITHUB_REF_NAME: ${{ github.event_name == 'push' && github.ref_name || github.event.pull_request.head.ref }}
27+
env:
28+
GLPA_C0_GH_REF: ${{ github.ref }}
29+
GLPA_C0_GH_REF_NAME: ${{ github.ref_name }}
30+
31+
- name: Find existing comment
32+
uses: peter-evans/find-comment@v4
33+
id: find-comment
34+
if: ${{ !cancelled() && github.event_name == 'pull_request' }}
35+
with:
36+
issue-number: ${{ github.event.pull_request.number }}
37+
comment-author: 'github-actions[bot]'
38+
body-includes: <!-- glpa_comment:pipeline -->
39+
40+
- name: Create or update comment
41+
uses: peter-evans/create-or-update-comment@v5
42+
if: ${{ !cancelled() && github.event_name == 'pull_request' }}
43+
with:
44+
comment-id: ${{ steps.find-comment.outputs.comment-id }}
45+
issue-number: ${{ github.event.pull_request.number }}
46+
body: |
47+
<!-- glpa_comment:pipeline -->
48+
${{ steps.pipeline.outputs.SUMMARY_TEXT }}
49+
edit-mode: replace

.gitlab-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
stages:
2+
- test
3+
4+
include:
5+
- project: code0-tech/development/telescopium
6+
ref: build-branch
7+
file: ci-template.gitlab-ci.yml

docs/index.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Welcome to the Documentation for Draco
3+
description: Find out how the adapter works
4+
template: splash
5+
---
6+
7+
Draco receives requests and triggers executions.

docs/meta.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"title": "Draco",
3+
"description": "The adapter",
4+
"root": true
5+
}

0 commit comments

Comments
 (0)