Skip to content
This repository was archived by the owner on May 5, 2024. It is now read-only.

Using Release branches with automatic_release_tag generates incorrect changelog #212

Open
BickelLukas opened this issue Jun 15, 2021 · 0 comments

Comments

@BickelLukas
Copy link

We use release branches instead of tags. This means the trigger for our pipeline is:

on:
  push:
    branches: 
      - releases/*

Then we create the release with an automatic_release_tag:

      - name: Set Release Version
        run: echo "RELEASE_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV

      - name: Create Named Release
        uses: marvinpinto/action-automatic-releases@latest
        with:
          repo_token: ${{ secrets.GITHUB_TOKEN }}
          automatic_release_tag: v${{ env.RELEASE_VERSION }}
          prerelease: false

This causes the changelog to not be generated from the last semver release but the last release of the same version (if exists, otherwise just the last commit). This would probably also be fixed if #16 is fixed.

I would be happy to submit a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant