diff --git a/.github/workflows/releasing.yml b/.github/workflows/releasing.yml index 4c9b8021..531f12ed 100644 --- a/.github/workflows/releasing.yml +++ b/.github/workflows/releasing.yml @@ -132,12 +132,6 @@ jobs: echo "this-version=$this_version" >> $GITHUB_OUTPUT echo "next-version=$next_version" >> $GITHUB_OUTPUT - - name: Remove latest changelog - run: | - rm CHANGELOG.latest.md - rm newsfragments/*.md - touch newsfragments/.gitkeep - - name: Release uses: softprops/action-gh-release@v2 with: @@ -148,6 +142,12 @@ jobs: # This could simply be omitted if we didn't want to test without a tag tag_name: "${{ steps.versions.outputs.this-version }}" + - name: Remove latest changelog + run: | + rm CHANGELOG.latest.md + rm newsfragments/*.md + touch newsfragments/.gitkeep + - name: Create PR for next patch version uses: peter-evans/create-pull-request@v7 with: