Skip to content

Commit 2cc6ee3

Browse files
authored
Merge pull request #962 from GenomicsStandardsConsortium/961-linkml-linting-errors-are-not-exposed-in-pr
publish LinkML linting artifact; don't try to interleave
2 parents 4a0240a + db44360 commit 2cc6ee3

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

.github/workflows/lint-linkml.yml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,27 @@ jobs:
2828

2929
- name: Run LinkML Linting
3030
run: |
31-
## Results file header and basic formatting
32-
printf '# LinkML Linting Results \n\n' > linting-results.md
33-
printf "$(poetry run linkml --version) linting found the following issues. \n\n" >> linting-results.md
34-
printf "_For more information about the linting rule categories, see the [LinkML linter documentation](https://linkml.io/linkml/schemas/linter.html#rules)._\n" >> linting-results.md
35-
## Lint the schema, and further format
3631
poetry run linkml lint --ignore-warnings -f markdown src/mixs/schema/mixs.yaml >> linting-results.md
37-
- name: Reformat log
38-
run: |
39-
sed -i -e 's/#### Errors/> [!CAUTION]/' -e 's/#### Warnings/> [!WARNING]/' -e 's/^*/> */' -e '/###.*yaml/ s/$/\n/' -e '/###.*yaml/ s/^###/**File**:/' linting-results.md
40-
- name: Post PR comment
41-
uses: mshick/add-pr-comment@v2 # v2
32+
33+
- name: Upload linting report
34+
uses: actions/upload-artifact@v3
4235
with:
43-
message-path: linting-results.md
44-
repo-token: ${{ secrets.GITHUB_TOKEN }}
45-
allow-repeats: true
36+
name: linting-results
37+
path: linting-results.md
38+
39+
# run: |
40+
# ## Results file header and basic formatting
41+
# printf '# LinkML Linting Results \n\n' > linting-results.md
42+
# printf "$(poetry run linkml --version) linting found the following issues. \n\n" >> linting-results.md
43+
# printf "_For more information about the linting rule categories, see the [LinkML linter documentation](https://linkml.io/linkml/schemas/linter.html#rules)._\n" >> linting-results.md
44+
# ## Lint the schema, and further format
45+
# poetry run linkml lint --ignore-warnings -f markdown src/mixs/schema/mixs.yaml >> linting-results.md
46+
# - name: Reformat log
47+
# run: |
48+
# sed -i -e 's/#### Errors/> [!CAUTION]/' -e 's/#### Warnings/> [!WARNING]/' -e 's/^*/> */' -e '/###.*yaml/ s/$/\n/' -e '/###.*yaml/ s/^###/**File**:/' linting-results.md
49+
# - name: Post PR comment
50+
# uses: mshick/add-pr-comment@v2 # v2
51+
# with:
52+
# message-path: linting-results.md
53+
# repo-token: ${{ secrets.GITHUB_TOKEN }}
54+
# allow-repeats: true

0 commit comments

Comments
 (0)