Merge branch 'main' into v-dmshib/fix-dotnet-tests

This commit is contained in:
Dmitry Shibanov
2020-09-15 17:25:23 +03:00
4 changed files with 18 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ on:
jobs: jobs:
build: Create_GitHub_release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@@ -6,7 +6,7 @@ on:
jobs: jobs:
build: Create_pull_request:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@@ -6,7 +6,7 @@ on:
jobs: jobs:
build: Merge_pull_request:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -23,6 +23,18 @@ jobs:
git push origin ${{ github.event.client_payload.ReleaseBranchName }}-docs git push origin ${{ github.event.client_payload.ReleaseBranchName }}-docs
sleep 30 sleep 30
- name: Approve pull request by GitHub-Actions bot
uses: actions/github-script@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: ${{ github.event.client_payload.PullRequestNumber }},
event: "APPROVE"
});
- name: Merge pull request for ${{ github.event.client_payload.ReleaseBranchName }} - name: Merge pull request for ${{ github.event.client_payload.ReleaseBranchName }}
uses: actions/github-script@v2 uses: actions/github-script@v2
with: with:
@@ -31,7 +43,8 @@ jobs:
github.pulls.merge({ github.pulls.merge({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
pull_number: ${{ github.event.client_payload.PullRequestNumber }} pull_number: ${{ github.event.client_payload.PullRequestNumber }},
merge_method: "squash"
}) })
- name: Delete docs branch ${{ github.event.client_payload.ReleaseBranchName }}-docs - name: Delete docs branch ${{ github.event.client_payload.ReleaseBranchName }}-docs

View File

@@ -6,7 +6,7 @@ on:
jobs: jobs:
build: Update_GitHub_release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: