mirror of
https://github.com/ilyakooo0/compaREST.git
synced 2024-11-25 20:11:16 +03:00
Added policeman
This commit is contained in:
parent
3ad9d5f725
commit
a43024d084
27
.github/workflows/github-actions-image.yaml
vendored
27
.github/workflows/github-actions-image.yaml
vendored
@ -9,9 +9,36 @@ on:
|
||||
types: [prereleased]
|
||||
|
||||
jobs:
|
||||
policeman:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Common setup
|
||||
uses: ./.github/actions/common_setup
|
||||
with:
|
||||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
||||
|
||||
- name: Run policeman
|
||||
run: |
|
||||
jq --argjson msg $($(nix-build ci/policeman.nix)/bin/policeman | jq -aRs .) ".[0].message = \$msg" <policeman.json >message.json
|
||||
cat message.json
|
||||
|
||||
- name: Post notice
|
||||
uses: yuzutech/annotations-action@v0.4.0
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
input: "./message.json"
|
||||
|
||||
check_versions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Check library version
|
||||
if: github.event_name == 'release'
|
||||
run: |
|
||||
|
4
ci/policeman.nix
Normal file
4
ci/policeman.nix
Normal file
@ -0,0 +1,4 @@
|
||||
{ sources ? import ../nix/sources.nix
|
||||
, pkgs ? import sources.nixpkgs { }
|
||||
}:
|
||||
pkgs.haskellPackages.policeman
|
5
policeman.json
Normal file
5
policeman.json
Normal file
@ -0,0 +1,5 @@
|
||||
[{
|
||||
"file": "compaREST.cabal",
|
||||
"title": "👮 Policeman",
|
||||
"annotation_level": "notice"
|
||||
}]
|
Loading…
Reference in New Issue
Block a user