generated from clean-code-workshop/sigrid-training-2024
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 1010 Bytes
/
sigrid-publish.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
name: sigrid-publish
on:
push:
branches:
- "master"
jobs:
sigridci:
runs-on: ubuntu-latest
steps:
- name: Dump github context
run: echo "$GITHUB_CONTEXT"
shell: bash
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download Sigrid CI
run: "git clone https://github.com/Software-Improvement-Group/sigridci.git sigridci"
- name: "Run Sigrid CI"
env:
SIGRID_CI_TOKEN: "${{ secrets.SIGRID_CI_TOKEN }}"
run: "./sigridci/sigridci/sigridci.py --customer sigridworkshop --system ${{ github.event.repository.name }} --source . --targetquality 3.0 --publish"
- name: "Save Sigrid CI results"
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v2
with:
path: "sigrid-ci-output/**"
retention-days: 7
if-no-files-found: ignore