Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update publish.yml #872

Merged
merged 4 commits into from
Jan 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Jonas1312 marked this conversation as resolved.
Show resolved Hide resolved
git push --set-upstream origin merge_release/$release_branch_version
Jonas1312 marked this conversation as resolved.
Show resolved Hide resolved
gh pr create --fill --reviewer kili-technology/ml
env:
GH_TOKEN: ${{ github.token }}

Expand Down