Skip to content

fix: support tag context#349

Open
rafaelsvieira wants to merge 1 commit intobridgecrewio:mainfrom
rafaelsvieira:main
Open

fix: support tag context#349
rafaelsvieira wants to merge 1 commit intobridgecrewio:mainfrom
rafaelsvieira:main

Conversation

@rafaelsvieira
Copy link

Workflows triggred by a tag are getting a error when execute git switch command. To solve that error this PR is adding the --detach parameter to change the git context and look at the commit instead of branch reference.

Tests:

  1. Workflow triggered by a tag before the fix.
  2. Workflow triggered by a tag after the fix.
  3. Workflow triggered by a branch before the fix. (same behaviour)
  4. Workflow triggered by a branch after the fix. (same behaviour)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant