Skip to content

Commit

Permalink
Make the stage-changelog file agnostic to a default branch
Browse files Browse the repository at this point in the history
closes #526
  • Loading branch information
lubosmj authored and mdellweg committed Nov 30, 2021
1 parent 581012c commit b86dbd0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES/526.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Made the file for staging changelogs branch agnostic.
1 change: 1 addition & 0 deletions plugin-template
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ DEPRECATED_FILES = {
".ci/scripts/release_requirements.txt",
".ci/scripts/release.py",
".github/workflows/fips.yml",
".github/workflows/scripts/stage-changelog-for-master.py",
".travis",
".travis.yml",
],
Expand Down
4 changes: 2 additions & 2 deletions templates/github/.github/workflows/release.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ jobs:
- name: Cleanup repository before making changelog PR
run: rm -rf .lock generation {{ plugin_snake }}_client* *-client.tar {{ plugin_name }}.tar todo web docs.tar

- name: Stage changelog for master branch
run: python .github/workflows/scripts/stage-changelog-for-master.py {{ "${{ github.event.inputs.release }}" }}
- name: Stage changelog for {{ plugin_default_branch }} branch
run: python .github/workflows/scripts/stage-changelog-for-default-branch.py {{ "${{ github.event.inputs.release }}" }}

- name: Create Pull Request for Changelog
uses: peter-evans/create-pull-request@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ helper = textwrap.dedent(
Stage the changelog for a release on {{ plugin_default_branch }} branch.

Example:
$ python .github/workflows/scripts/stage-changelog-for-master.py 3.4.0
$ python .github/workflows/scripts/stage-changelog-for-default-branch.py 3.4.0

"""
)
Expand Down

0 comments on commit b86dbd0

Please sign in to comment.