Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Referring to the wrong branch. #119

Open
ytetsuro opened this issue Aug 15, 2022 · 1 comment
Open

Referring to the wrong branch. #119

ytetsuro opened this issue Aug 15, 2022 · 1 comment

Comments

@ytetsuro
Copy link

Describe the bug

I ran semantic-release on the master branch, but the release fail.
The reason is the following.

[5:34:45 AM] [semantic-release] › ℹ  Running semantic-release version 19.0.3
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/changelog"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/npm"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/github"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/git"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/changelog"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/npm"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/git"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/npm"
[5:[34](https://github.com/ytetsuro/sabik/runs/7832677258?check_suite_focus=true#step:6:35):46 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/github"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/npm"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/github"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "success" from "@semantic-release/github"
[5:34:46 AM] [semantic-release] › ✔  Loaded plugin "fail" from "@semantic-release/github"
[5:34:48 AM] [semantic-release] › ℹ  This test run was triggered on the branch develop, while semantic-release is configured to only publish from master, therefore a new version won’t be published.

Workflow

workflow
config

Expected behavior

It is correctly recognized as a master branch and deployed.

Additional context

This repository has a default branch is develop.
I checked the name of the branch I was checking out just before deploying and it was master.

@JoseLion
Copy link

We experienced the same issue. Not sure if related, but the our release action was triggering on a workflow_run instead of a push:

on:
  workflow_run:
    workflows: [Build]
    branches: [release]
    types:
      - completed

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

No branches or pull requests

2 participants