Skip to content

Commit 610b240

Browse files
authored
Merge pull request #6 from code0-tech/setup-docs
Setup telescopium docs
2 parents e3384ae + 7c79d10 commit 610b240

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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: '80672463'
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+
30+
- name: Find existing comment
31+
uses: peter-evans/find-comment@v4
32+
id: find-comment
33+
if: ${{ !cancelled() && github.event_name == 'pull_request' }}
34+
with:
35+
issue-number: ${{ github.event.pull_request.number }}
36+
comment-author: 'github-actions[bot]'
37+
body-includes: <!-- glpa_comment:pipeline -->
38+
39+
- name: Create or update comment
40+
uses: peter-evans/create-or-update-comment@v5
41+
if: ${{ !cancelled() && github.event_name == 'pull_request' }}
42+
with:
43+
comment-id: ${{ steps.find-comment.outputs.comment-id }}
44+
issue-number: ${{ github.event.pull_request.number }}
45+
body: |
46+
<!-- glpa_comment:pipeline -->
47+
${{ steps.pipeline.outputs.SUMMARY_TEXT }}
48+
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

0 commit comments

Comments
 (0)