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

Actions: skip "Create Github release" job when dispatching from "Rebuild release images" #27

Open
dmke opened this issue Jun 3, 2022 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@dmke
Copy link
Member

dmke commented Jun 3, 2022

Goreleaser will fail to create a Github release for a given Git tag, if the release already exist.

This currently happens on a monthly schedule (Workflow definition), although it shouldn't:

await github.rest.actions.createWorkflowDispatch({
  owner:       context.repo.owner,
  repo:        context.repo.repo,
  workflow_id: 'release.yml',
  ref:         releaseTag,
  inputs: {
    goreleaser:  'false',
    releaseType: 'release',
  }
})
console.log(`triggered release for ${releaseTag} (${releaseRef})`)

goreleaser: 'false' should inhibit creating Github releases.

The latest Workflow log contains:

triggered release for v0.4.1 (fa1c31bae6ead1c665b5534fc05eb52768c74920)
@dmke dmke added the bug Something isn't working label Jun 3, 2022
@dmke dmke added this to the v1.0 milestone Jun 7, 2022
@dmke dmke closed this as completed in 31dcada Jun 6, 2024
@dmke
Copy link
Member Author

dmke commented Jun 6, 2024

That wasn't it...

@dmke dmke reopened this Jun 6, 2024
@dmke
Copy link
Member Author

dmke commented Jun 6, 2024

It seems like github.rest.repos.getLatestRelease only looks at GitHub releases, not the Git tags 🤔

dmke added a commit that referenced this issue Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant