Skip to content

What the contition of a puch with a tocken to trigger a workflow #27013

Answered by BrightRan
sbrunner asked this question in Actions
Discussion options

You must be logged in to vote

@sbrunner ,

In your workflow (Upgrade 2.5), I noticed that you configure the input parameter on the checkout action like as below:

- uses: actions/checkout@v2
  with:
    ref: 'prod-2-5'

When using the checkout action, few points you need to understand:

1) If you do not specify the value of the input parameter " token", by default the action will use ${{ github.token }} to set the value.

2) The input parameter " persist-credentials" is used to define whether to configure the token or SSH key with the local git config. By default it is " true".

3) When " persist-credentials" is " true", the checkout action will use the value of " token" or " ssh-key" to configure the credentials of the lo…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants