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 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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 --global user.name github-actions[bot]
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.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