Skip to content

Commit

Permalink
chore: configured backporting support (#2233)
Browse files Browse the repository at this point in the history
  • Loading branch information
enjenjenje authored May 7, 2024
1 parent 3994299 commit f3c07e8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/release-please/config-backport.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"bootstrap-sha": "a5bed5fc40f29c1ea8493a6d259fb590d5b7e88e",
"release-type": "simple",
"versioning" : "always-bump-patch",
"packages": {
".": {
"package-name": "nox",
"component": "nox"
}
}
}
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "master"
- "backport/*"

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
Expand All @@ -19,13 +20,21 @@ jobs:
pr: ${{ steps.release.outputs['pr'] }}

steps:
- name: Set release-please config
id: config
run: |
if [[ ${{ github.ref_name }} == main ]]; then echo "config=.github/release-please/config.json" >> $GITHUB_OUTPUT;
elif [[ ${{ github.ref_name }} =~ ^backport/ ]]; then echo "config=.github/release-please/config-backport.json" >> $GITHUB_OUTPUT;
fi
- name: Run release-please
id: release
uses: google-github-actions/release-please-action@v4
with:
target-branch: ${{ github.ref_name }}
token: ${{ secrets.FLUENCEBOT_RELEASE_PLEASE_PAT }}
command: manifest
config-file: .github/release-please/config.json
config-file: ${{ steps.config.outputs.config }}
manifest-file: .github/release-please/manifest.json

- name: Show output from release-please
Expand Down

0 comments on commit f3c07e8

Please sign in to comment.