diff options
| author | Menny Even Danan <menny@evendanan.net> | 2020-05-20 22:30:56 +0000 |
|---|---|---|
| committer | Menny Even Danan <menny@evendanan.net> | 2020-05-21 13:01:14 +0000 |
| commit | 684129167ebc88e66169ff123c649ecd00125bbf (patch) | |
| tree | 9c05821f75fd2254f59d1ae607741c4628d0f3cd /.github/workflows/deploy.yml | |
| parent | 0e546ffc372706a0b735ce0548d51dce000f720d (diff) | |
| download | AnySoftKeyboard-684129167ebc88e66169ff123c649ecd00125bbf.tar.gz AnySoftKeyboard-684129167ebc88e66169ff123c649ecd00125bbf.tar.bz2 | |
Automatically create PR for deplyment halting
Diffstat (limited to '.github/workflows/deploy.yml')
| -rw-r--r-- | .github/workflows/deploy.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b7fb67d34..1388d8863 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,6 +40,18 @@ jobs: publish_service_account_creds_json_url: ${{ secrets.PUBLISH_CERT_JSON_URL }} - name: status-success run: ./gradlew --stacktrace :deployment:updateDeploymentSuccess -PRequest.apiUsername="${{ secrets.BOT_MASTER_RW_GITHUB_USERNAME }}" -PRequest.apiUserToken="${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN }}" -PrequestStatus.environment="${{ github.event.deployment.environment }}" -PrequestStatus.deployment_id="${{ github.event.deployment.id }}" -PrequestStatus.environment="${{ github.event.deployment.environment }}" -PrequestStatus.sha="${{ github.event.deployment.sha }}" + - name: Create pull request + uses: peter-evans/create-pull-request@v2.4.4 + with: + token: ${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN }} + commit-message: 'Automated Deployment Halt' + title: 'Automated Deployment Halt' + committer: 'Polyglot <ask@evendanan.net>' + author: 'Polyglot <ask@evendanan.net>' + body: '' + team-reviewers: add-on-maintainers + branch: 'bot-pr/halt-deployment-marker' + labels: automerge - name: status-failure if: failure() run: ./gradlew --stacktrace :deployment:updateDeploymentState -PRequest.apiUsername="${{ secrets.BOT_MASTER_RW_GITHUB_USERNAME }}" -PRequest.apiUserToken="${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN }}" -PrequestStatus.environment="${{ github.event.deployment.environment }}" -PrequestStatus.deployment_id="${{ github.event.deployment.id }}" -PrequestStatus.deployment_state="failure" |
