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
2.02k stars 229 forks source link

Unexpected input(s) 'commit_message', 'branch', valid inputs are ['entryPoint', 'args'] #127

Closed introwit closed 3 years ago

introwit commented 3 years ago

YAML:

name: Format PHP using PHP-CS-FIXER

on:
  push:
    branches:    
      - develop
    paths:
    - '**.php'

jobs:
  php-cs-fixer:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1

    - name: Cache dependencies
      uses: actions/cache@v1
      with:
        path: ~/.composer/cache/files
        key: dependencies-composer-${{ hashFiles('composer.json') }}

    - name: Install dependencies
      run: composer install

    - name: Run php-cs-fixer
      run: ./vendor/bin/php-cs-fixer fix

    - uses: stefanzweifel/git-auto-commit-action@v2.1.0
      with:
        commit_message: Apply php-cs-fixer changes
        branch: develop
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Warning in the actions UI:

Screenshot 2020-11-20 at 12 17 27 AM
stefanzweifel commented 3 years ago

Your workflow is using v2.1.0 which uses the docker-environment of GitHub Actions. In v4 we've switched to the node12-environment. I would suggest you update your workflow to use v4 if you don't want to see this warning.

Check the usage-section in the README. And here is a list of the recent releases: https://github.com/stefanzweifel/git-auto-commit-action/releases