Skip to content

Usage with external github action #2

@brunolemos

Description

@brunolemos

I'm trying to use Deploy Key with gh-action-bump-version.

Do you know if secrets.GITHUB_TOKEN is automatically set by the github checkout action when using ssh-key?
I'm still facing the branch protected rule error.

More context: phips28/gh-action-bump-version#260

steps:
  - uses: actions/checkout@v4
    with:
      ref: refs/heads/dev
      ssh-key: ${{ secrets.DEPLOY_KEY }} # Private ssh key
      persist-credentials: true # <<-- Does this expose a token to GITHUB_TOKEN?
  - id: bump-package-version
    uses: 'phips28/gh-action-bump-version@master'
    with:
      commit-message: 'CI: bumps version to {{version}} [skip ci]'
      default: 'minor'
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Tried with or without this line; how to use the ssh auth?
      PACKAGEJSON_DIR: packages/editor
Image

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