From dbc7972e5556af4b39524aa87c41d1deb6ff0049 Mon Sep 17 00:00:00 2001 From: Jonas Maison Date: Mon, 9 Jan 2023 09:19:23 +0100 Subject: [PATCH] ci: update publish.yml (#872) --- .github/workflows/publish.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 24c89c820..2fdfeb058 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }}