Skip to content

Commit

Permalink
Merge branch 'release/2' into release/1
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/merge-forward.yaml
  • Loading branch information
mbuchoff committed Jul 23, 2024
2 parents 523ec8d + c85102b commit 1612e1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/merge-forward.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
push:
branches:
- release/*
paths:
- '.github/**'

jobs:
merge_commit:
runs-on: ubuntu-latest
env:
RELEASE_BRANCH: main
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -21,14 +21,20 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "DevOps ${{ github.workflow }}"
- name: Read release branch from file
id: read_branch
run: |
RELEASE_BRANCH=$(cat release_branch.txt)
echo "::set-output name=branch::${RELEASE_BRANCH}"
- name: Merge and push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -e -v
gitcommit=$(git rev-parse HEAD)
git checkout $RELEASE_BRANCH
git checkout ${{ steps.read_branch.outputs.branch }}
git merge $gitcommit --no-ff
Expand Down
1 change: 1 addition & 0 deletions release_branch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main

0 comments on commit 1612e1f

Please sign in to comment.