@@ -9,9 +9,36 @@ on:
99 types: [prereleased]
1010
1111jobs:
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+
1235 check_versions:
1336 runs-on: ubuntu-latest
1437 steps:
38+ - uses: actions/checkout@v2
39+ with:
40+ submodules: recursive
41+
1542 - name: Check library version
1643 if: github.event_name == 'release'
1744 run: |