Create Pull Request for automated update image changes (#6470)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
This commit is contained in:
quicksilver 2021-07-13 15:12:27 +08:00 committed by GitHub
parent d2a89a3220
commit 4dd86815d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 9 deletions

View File

@ -27,7 +27,6 @@ jobs:
os: [ubuntu18.04, centos7]
env:
OS_NAME: ${{ matrix.os }}
GITHUB_TOKEN: ${{ secrets.ALL_CONTRIBUTORS_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
@ -62,9 +61,22 @@ jobs:
git config --local user.name "github-actions[bot]"
git add .env
git commit -m "Update Builder Image Changes"
- name: Push Builder Image Changes
- name: Create Pull Request
id: cpr
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus' && matrix.os == 'ubuntu18.04'
continue-on-error: true
shell: bash
with:
token: ${{ secrets.ALL_CONTRIBUTORS_TOKEN }}
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: update_builder_images
delete-branch: true
title: '[automated] Update Builder Image Changes'
body: |
Update Builder Image Changes
Signed-off-by: ${{ github.actor }} ${{ github.actor }}@users.noreply.github.com
- name: Check outputs
run: |
git push "https://github.com/$GITHUB_REPOSITORY.git" HEAD:${{ github.ref }} --follow-tags
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

View File

@ -23,8 +23,6 @@ jobs:
name: PyTest
runs-on: ubuntu-latest
timeout-minutes: 60
env:
GITHUB_TOKEN: ${{ secrets.ALL_CONTRIBUTORS_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
@ -67,9 +65,22 @@ jobs:
git config --local user.name "github-actions[bot]"
git add .env
git commit -m "Update Pytest Image Changes"
- name: Push Pytest Image Changes
- name: Create Pull Request
id: cpr
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
continue-on-error: true
shell: bash
with:
token: ${{ secrets.ALL_CONTRIBUTORS_TOKEN }}
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: update_builder_images
delete-branch: true
title: '[automated] Update Pytest Image Changes'
body: |
Update Pytest Image Changes
Signed-off-by: ${{ github.actor }} ${{ github.actor }}@users.noreply.github.com
- name: Check outputs
run: |
git push "https://github.com/$GITHUB_REPOSITORY.git" HEAD:${{ github.ref }} --follow-tags
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"