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

Cannot use args: "--trace" #154

Closed
rbubley opened this issue May 21, 2021 · 1 comment
Closed

Cannot use args: "--trace" #154

rbubley opened this issue May 21, 2021 · 1 comment

Comments

@rbubley
Copy link

rbubley commented May 21, 2021

When trying to debug using the approach in the ReadMe:

      - name: automerge
        uses: "pascalgn/automerge-action@v0.14.1"
        with:
          args: "--trace"
        env:
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
          PULL_REQUEST: 266
          MERGE_DELETE_BRANCH: true

I get:

Warning: Unexpected input(s) 'args', valid inputs are ['']
Run pascalgn/automerge-action@v0.14.1
  with:
    args: --trace
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.9.5/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.5/x64/lib
    changes: 1
    GITHUB_TOKEN: ***
    PULL_REQUEST: 266
    MERGE_DELETE_BRANCH: true

I think this warning is because args is not specified as an input in action.yml?

Although the job goes on to run, there is no debug output.

@pascalgn
Copy link
Owner

Yes, that was a bug, thanks for the info! This action was a "Docker action" before, but when we migrated it to a JS action, we didn't realize that this with: args won't work anymore. So I've updated it now and the README now gives the (hopefully 🙏) correct way to enable debug logs https://github.com/pascalgn/automerge-action#debugging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants