on master help sign in
Added policeman
a43024diko
.github/workflows/github-actions-image.yaml+27
@@ -9,9 +9,36 @@ on:
9 types: [prereleased]
9 types: [prereleased]
10
10
11jobs:
11jobs:
12+ policeman:
13+ runs-on: ubuntu-latest
14+ steps:
15+ - uses: actions/checkout@v2
16+ with:
17+ submodules: recursive
18+
19+ - name: Common setup
20+ uses: ./.github/actions/common_setup
21+ with:
22+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
23+
24+ - name: Run policeman
25+ run: |
26+ jq --argjson msg $($(nix-build ci/policeman.nix)/bin/policeman | jq -aRs .) ".[0].message = \$msg" <policeman.json >message.json
27+ cat message.json
28+
29+ - name: Post notice
30+ uses: yuzutech/annotations-action@v0.4.0
31+ with:
32+ repo-token: "${{ secrets.GITHUB_TOKEN }}"
33+ input: "./message.json"
34+
12 check_versions:
35 check_versions:
13 runs-on: ubuntu-latest
36 runs-on: ubuntu-latest
14 steps:
37 steps:
38+ - uses: actions/checkout@v2
39+ with:
40+ submodules: recursive
41+
15 - name: Check library version
42 - name: Check library version
16 if: github.event_name == 'release'
43 if: github.event_name == 'release'
17 run: |
44 run: |
ci/policeman.nixnew file+4
@@ -0,0 +1,4 @@
1+{ sources ? import ../nix/sources.nix
2+, pkgs ? import sources.nixpkgs { }
3+}:
4+pkgs.haskellPackages.policeman
policeman.jsonnew file+5
@@ -0,0 +1,5 @@
1+[{
2+ "file": "compaREST.cabal",
3+ "title": "👮 Policeman",
4+ "annotation_level": "notice"
5+}]