git-release icon indicating copy to clipboard operation
git-release copied to clipboard

FATAL error reading changelog: changelog file does not contain version 1.1.2

Open itzsaga opened this issue 2 years ago • 5 comments

Description

git-release fails to do a GitHub release.

Tag

1.1.2

Workflow

name: Release
on:
  push:
    tags: ['*']
permissions:
  contents: write
jobs:
  release:
    name: Release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Create GitHub release
        uses: docker://antonyurchenko/git-release:v5
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Changelog

# Changelog
_This changelog follows the [Common Changelog] conventions._

## [1.1.2] - 2023-12-05
### Fixed
- GitHub action uses docker instead of wrapper ([`bf45b3a`](https://github.com/gratiahealth/terraform-module-template/commit/bf45b3a))

## [1.1.1] - 2023-12-05
### Fixed
- GitHub action version change from `latest` to `main` ([`68ccd9a`](https://github.com/gratiahealth/terraform-module-template/commit/68ccd9a))

## [1.1.0] - 2023-12-05
### Added
- Add automatic GitHub release creation ([`4d8c651`](https://github.com/gratiahealth/terraform-module-template/commit/53bd922))

## [1.0.0] - 2023-12-05

_Initial release_

[1.1.2]: https://github.com/gratiahealth/terraform-module-template/releases/compare/1.1.1...1.1.2
[1.1.1]: https://github.com/gratiahealth/terraform-module-template/releases/compare/1.1.0...1.1.1
[1.1.0]: https://github.com/gratiahealth/terraform-module-template/releases/compare/1.0.0...1.1.0
[1.0.0]: https://github.com/gratiahealth/terraform-module-template/releases/tag/1.0.0
[Common Changelog]: https://common-changelog.org/

Log

Run docker://antonyurchenko/git-release:v5
  env:
    GITHUB_TOKEN: ***
/usr/bin/docker run --name antonyurchenkogitreleasev5_14ab2c --label be150a --workdir /github/workspace --rm -e "GITHUB_TOKEN" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/terraform-module-template/terraform-module-template":"/github/workspace" antonyurchenko/git-release:v5
DEBUG git-release v5.0.2                           
FATAL error reading changelog: changelog file does not contain version 1.1.2 

Happy to share more if needed. Can't share direct links due to private repo.

itzsaga avatar Dec 05 '23 18:12 itzsaga

Hello @itzsaga, Am curious whether the errors persist if:

  • Tag is created with v prefix -> v1.1.2
  • [Common Changelog]: https://common-changelog.org/ is removed from the bottom in the following manner:
# Changelog
_This changelog follows the (Common Changelog)[https://common-changelog.org/] conventions._

## [1.1.2] - 2023-12-05
### Fixed
- GitHub action uses docker instead of wrapper ([`bf45b3a`](https://github.com/gratiahealth/terraform-module-template/commit/bf45b3a))

## [1.1.1] - 2023-12-05
### Fixed
- GitHub action version change from `latest` to `main` ([`68ccd9a`](https://github.com/gratiahealth/terraform-module-template/commit/68ccd9a))

## [1.1.0] - 2023-12-05
### Added
- Add automatic GitHub release creation ([`4d8c651`](https://github.com/gratiahealth/terraform-module-template/commit/53bd922))

## [1.0.0] - 2023-12-05

_Initial release_

[1.1.2]: https://github.com/gratiahealth/terraform-module-template/releases/compare/1.1.1...1.1.2
[1.1.1]: https://github.com/gratiahealth/terraform-module-template/releases/compare/1.1.0...1.1.1
[1.1.0]: https://github.com/gratiahealth/terraform-module-template/releases/compare/1.0.0...1.1.0
[1.0.0]: https://github.com/gratiahealth/terraform-module-template/releases/tag/1.0.0

anton-yurchenko avatar Dec 07 '23 16:12 anton-yurchenko

@anton-yurchenko it works when the tag has a v prefix without any changes to the CHANGELOG.md file.

itzsaga avatar Dec 07 '23 17:12 itzsaga

I could not recreate this issue using the provided workflow and changelog files. Please check your environment and the relevant files again; there might be some global environmental variables or ambiguous characters on the changelog file. Alternatively, please recreate this issue in a dummy public or private repository, providing me with read access, I might be able to investigate further.

anton-yurchenko avatar Dec 13 '23 04:12 anton-yurchenko

I could not recreate this issue using the provided workflow and changelog files. Please check your environment and the relevant files again; there might be some global environmental variables or ambiguous characters on the changelog file. Alternatively, please recreate this issue in a dummy public or private repository, providing me with read access, I might be able to investigate further.

I'll see about recreating in a public repo and get back to you. Thanks for looking into it.

itzsaga avatar Dec 15 '23 18:12 itzsaga

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Mar 04 '24 00:03 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Apr 03 '24 00:04 github-actions[bot]