-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #412 from intershop/develop/icm
Release changes develop/icm
- Loading branch information
Showing
29 changed files
with
296 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: bump-version | ||
description: Bump chart versions | ||
|
||
inputs: | ||
changes: | ||
description: | | ||
A string of charts and their required update, e.g. "icm-as:minor icm-web:patch". | ||
Dependent charts don't have to be specified and will be bumped automatically. | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Bump Version | ||
shell: bash | ||
run: | | ||
pip install --no-cache-dir bump2version | ||
python ./.github/callBump2version.py ${{inputs.changes}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: sync develop with main | ||
# creates both a branch and a PR to sync changes from main back to the develop branches | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
sync: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
branch: | ||
- icm | ||
- iom | ||
- pwa | ||
- common | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Create integration branch | ||
shell: bash | ||
run: | | ||
INTEGRATE="feature/${{ matrix.branch }}/integrate-main" | ||
# delete previous if exists | ||
git branch --delete $INTEGRATE || true | ||
git branch $INTEGRATE | ||
git checkout $INTEGRATE | ||
# force push to override a previously existing branch, if it exists | ||
git push --force --set-upstream origin $INTEGRATE | ||
- name: Create PR if necessary | ||
shell: bash | ||
run: | | ||
SUBJECT="chore: integrate main to develop/${{ matrix.branch }}" | ||
BODY="Automated Sync PR" | ||
# this may fail if a PR already exists, this is ignored | ||
gh pr create --base "develop/${{ matrix.branch }}" --title "$SUBJECT" --body "$BODY" || true | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Enable PR automerge | ||
shell: bash | ||
run: | | ||
gh pr merge --merge --auto | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Create Release Branch | ||
# creates a release branch, creates a PR and bumps all versions as specified | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
changes: | ||
description: | | ||
A string of charts and their required update, e.g. "icm-as:minor icm-web:patch". | ||
Dependent charts don't have to be specified and will be bumped automatically. | ||
This action cannot be used for the iom charts, since they don't use bump2version. | ||
required: true | ||
type: string | ||
|
||
|
||
jobs: | ||
release: | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: #fetch all commits, not just the last one | ||
fetch-depth: 0 | ||
- name: Bump versions | ||
uses: ./.github/template/bump-version | ||
with: | ||
changes: ${{ inputs.changes }} | ||
- name: Create Release Branch & PR | ||
id: pr | ||
uses: peter-evans/create-pull-request@v5 | ||
with: # commits all changes and creates the release branch and PR. If one already exists, it is updated. | ||
branch: release/${{ github.ref_name }} | ||
base: main | ||
title: Release ${{ inputs.changes }} | ||
commit-message: "chore: bump versions ${{ inputs.changes }} and dependent charts" | ||
delete-branch: true | ||
labels: automated pr | ||
- name: Enable Pull Request Automerge | ||
shell: bash | ||
run: | | ||
gh pr merge --merge --subject "release: ${{ inputs.changes }}" --auto ${{ steps.pr.outputs.pull-request-number }} | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
**/charts/*.tgz | ||
**/requirements.lock | ||
**/Chart.lock | ||
environment/tmp_repo/** | ||
build/** | ||
.idea/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
[bumpversion] | ||
current_version = 1.3.0 | ||
commit = true | ||
tag = false | ||
message = Bump icm-as chart version: {current_version} → {new_version} | ||
|
||
# note: the indent after "search" is required to signal bump2version that the pattern continues | ||
[bumpversion:file:Chart.yaml] | ||
search = version: {current_version} | ||
replace = version: {new_version} | ||
search = name: icm-as | ||
version: {current_version} | ||
replace = {new_version} | ||
|
||
[bumpversion:file:../icm/Chart.yaml] | ||
search = name: icm-as | ||
version: {current_version} | ||
replace = {new_version} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.