Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missing input uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GH_TOKEN }} #187

Closed
@zjt666666zjt

Description

@zjt666666zjt

commit
- name: commit file
run: |
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
git config --local user.name 'github-actions[bot]'
git diff --exit-code || git add . && git commit -am '[bot] update images.json' --allow-empty
# push
- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_TOKEN }} but when I act this GitHub action

##[debug]Evaluating condition for step: 'push changes'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: push changes
##[debug]Loading inputs
##[debug]Evaluating: secrets.GH_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'GH_TOKEN'
##[debug]=> null
##[debug]Result: null
##[debug]Evaluating: github.server_url
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'server_url'
##[debug]=> 'https://github.com/'
##[debug]Result: 'https://github.com/'
##[debug]Loading env
Run ad-m/github-push-action@master
Push to branch main
Missing input "github_token: ${{ secrets.GITHUB_TOKEN }}".
Error: Invalid exit code: 1
at ChildProcess. (/home/runner/work/_actions/ad-m/github-push-action/master/start.js:30:21)
at ChildProcess.emit (node:events:514:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
code: 1
}
##[debug]Node Action run completed with exit code 255
##[debug]Finishing: push changes##[debug]Evaluating condition for step: 'push changes'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: push changes
##[debug]Loading inputs
##[debug]Evaluating: secrets.GH_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'GH_TOKEN'
##[debug]=> null
##[debug]Result: null
##[debug]Evaluating: github.server_url
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'server_url'
##[debug]=> 'https://github.com/'
##[debug]Result: 'https://github.com/'
##[debug]Loading env
Run ad-m/github-push-action@master
Push to branch main
Missing input "github_token: ${{ secrets.GITHUB_TOKEN }}".
Error: Invalid exit code: 1
at ChildProcess. (/home/runner/work/_actions/ad-m/github-push-action/master/start.js:30:21)
at ChildProcess.emit (node:events:514:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
code: 1
}
##[debug]Node Action run completed with exit code 255
##[debug]Finishing: push changes

I don’t know how to deal with it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions