comment commits with output of a job

Hi everybody,

Recently i wrote this action to lint some python code.

name: kitto_linter

    branches: [master]
    branches: [master]

    runs-on: ubuntu-latest
    - uses: actions/checkout@v2
    - name: Set up Python 3.8
      uses: actions/setup-python@v1
        python-version: 3.8

    - name: checking requirements.txt is ok
      run: |
          python -m pip install --upgrade pip
          pip install -r requirements.txt
    - name: purring and buying corn-flakes
      run: pip install flake8

    - name: kitto is linting
      run: flake8 .

 This just does the job, but I was wondering if I could implement something that comments the event that triggered the action (commit on master or pr) with the output of a command I run (specifically flake8 . this time).

While looking around I found this action  however I can’t understand how to use a variable in the body ( i.e. I could assign output = flake8 . > flake8_output.txt).

How can I do this? Am I missing something?

Thanks in advance.

The types of input that are supported by an action is up to the author.

It looks like “Commit Comment” supports plain text and environment variables, but doesn’t support reading from a file.

Please reach out to the author for additing support for files.

Yea, you are right, probably it’s the best thing to do