Update README.md #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v2 | |
- 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 sigrid2022 --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 |