wemake-python-styleguide
wemake-python-styleguide copied to clipboard
Gihub Action: Unable to process file command 'output' successfully.
What's wrong
pipeline fails with "Unable to process file command 'output' successfully."
maybe is relatad with:
Recently github has announced change that echo "::set-output name=x::y" command is deprecated and should be replaced by echo "x=y" >> $GITHUB_OUTPUT
How it should be
print output and not fail.
Flake8 version and plugins
Github action: https://github.com/zakkg3/ClusterSecret/actions/runs/6107692637/job/16575222161 Here is the action workflow file:
name: Linter
on:
push:
branches:
- '*'
jobs:
lint:
name: LinterMonkey
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: GitCheckout
- name: wemake-python-styleguide
uses: wemake-services/[email protected]
with:
reporter: 'github-pr-review'
path: './src'
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
pip information
does not apply
OS information
ubuntu-latest (see wrokflow file)
a workaround:
name: LinterMonkey
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python "3.9"
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wemake-python-styleguide
- name: WemakeLint
run: |
flake8 ./src
https://github.com/wemake-services/wemake-python-styleguide/commit/f48b2473c3b14cf692a7c072580d857b69f98d98
I've already done this 1 year ago. Does it happen all the time? Or is it a single failure?