stefanzweifel / git-auto-commit-action

Automatically commit and push changed files back to GitHub with this GitHub Action for the 80% use case.
MIT License
1.96k stars 226 forks source link

Unexpected input(s) 'token' #181

Closed ndahlquist closed 2 years ago

ndahlquist commented 2 years ago

Version of the Action v4.x.x

Describe the bug I am trying to add the token param, as described at https://github.com/stefanzweifel/git-auto-commit-action#commits-made-by-this-action-do-not-trigger-new-workflow-runs.

Unfortunately, it appears the token param is no longer supported:

Warning: Unexpected input(s) 'token', valid inputs are ['commit_message', 'branch', 'commit_options', 'add_options', 'status_options', 'file_pattern', 'repository', 'commit_user_name', 'commit_user_email', 'commit_author', 'tagging_message', 'push_options', 'skip_dirty_check', 'skip_fetch', 'disable_globbing']

To Reproduce Steps to reproduce the behavior:

  1. Add token param.
  2. Run job.

Expected behavior Action should accept token param, or documentation updated to remove this feature.

Used Workflow

      - uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: Apply lint fixes
          token: ${{ secrets.SWARM_BOT_GITHUB_PAT }}

Additional context If this was intentionally removed, happy to submit a PR to remove this from the readme.

Is there a different workaround for triggering new runs from pushed commits? Thank you!

stefanzweifel commented 2 years ago

@ndahlquist The token input must be added to the actions/checkout@v2 and not to git-auto-commit.

ndahlquist commented 2 years ago

Ah, my mistake! Thank you for the correction 🙏