Skip to content

Usage example for the build-to-release-branch action needs to specify persist-credentials: false #9

Description

@goldenapples

I recently adapted the example script from teh build-to-release-branch action for use in a plugin, and I found that the "checkout" step was causing problems.

The action performs its own actions/checkout internally here, which sets up git auth headers. My workflow's prior actions/checkout call had set the same headers, causing a duplicate Authorization header.

I was able to work around this problem by specifying persist-credentials: false in the first checkout:

https://github.com/humanmade/post-link-block/blob/6c5e316a604cf4a15be21f227a96ea436c6b2f64/.github/workflows/build-release-branch.yml#L19-L20

I think this flag would be good to add to the action documentation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions