Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gihub Action: Unable to process file command 'output' successfully. #2734

Open
zakkg3 opened this issue Sep 7, 2023 · 2 comments
Open

Gihub Action: Unable to process file command 'output' successfully. #2734

zakkg3 opened this issue Sep 7, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@zakkg3
Copy link

zakkg3 commented Sep 7, 2023

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)

@zakkg3 zakkg3 added the bug Something isn't working label Sep 7, 2023
@zakkg3
Copy link
Author

zakkg3 commented Sep 7, 2023

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

@sobolevn
Copy link
Member

sobolevn commented Sep 8, 2023

f48b247

I've already done this 1 year ago. Does it happen all the time? Or is it a single failure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants