Skip to content

Commit

Permalink
ci: update publish.yml (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas1312 committed Jan 9, 2023
1 parent b40c7f3 commit dbc7972
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,19 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_PYTHON_SDK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

- name: Set git identity
run: |
git config user.name ci-bot
git config user.email ci-bot@example.com
- name: create PR to merge release branch and master
run: |
git fetch
git checkout release/${{ github.ref_name }}
git checkout -b merge_release/${{ github.ref_name }}
git push
gh pr create --fill
release_branch_version=$(git branch -a --contains ${{ github.ref_name }} | grep remotes/origin/release | awk -F '/' '{print $NF}')
git checkout release/$release_branch_version
git checkout -b merge_release/$release_branch_version
git push --set-upstream origin merge_release/$release_branch_version
gh pr create --fill --reviewer kili-technology/ml
env:
GH_TOKEN: ${{ github.token }}

Expand Down

0 comments on commit dbc7972

Please sign in to comment.