diff --git a/.github/workflows/parse_comment.yml b/.github/workflows/parse_comment.yml new file mode 100644 index 0000000000..5a20ce40ac --- /dev/null +++ b/.github/workflows/parse_comment.yml @@ -0,0 +1,19 @@ +name: Fuzzy CI + +on: + push: + branches: [ read-and-parse-comment ] + # pull_request: + # branches: [ fuzzy-ci-artefacts-approach ] + # types: [ opened, synchronize, reopened, unlabeled, labeled ] + +jobs: + all: + runs-un: ubuntu-20.04 + name: Read and parse comment + steps: + - name: Get message last approval comment on PR + # env: + # msg_start: + run: | + curl -s "https://api.github.com/repos/pitag-ha/merlin/issues/6/comments" | jq -r 'map(select(.body | startswith("This PR introduces a change in some Merlin query response(s), which has been captured by the fuzzy-test CI."))) | max_by(.'created_by') | .body'