workflows: don't ping BrewTestBot on schedule (#53827)

master
Jonathan Chang 2020-04-27 21:04:07 +10:00 committed by GitHub
parent e4fa680502
commit dc8c20150a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 2 deletions

View File

@ -42,10 +42,18 @@ jobs:
const repository = context.repo.owner + '/' + context.repo.repo
const url = 'https://github.com/' + repository + '/actions/runs/' + run_id
let comment = ''
if (actor == 'BrewTestBot') {
comment += ':robot: A scheduled task'
} else {
comment += ':shipit: @' + actor
}
comment += ' has [triggered a merge](' + url + ').'
github.issues.createComment({
...context.repo,
issue_number: pr,
body: '@' + actor + ' has [triggered a merge](' + url + ').'
body: comment
})
- name: Update Homebrew
run: |
@ -98,10 +106,16 @@ jobs:
const repository = context.repo.owner + '/' + context.repo.repo
const url = 'https://github.com/' + repository + '/actions/runs/' + run_id
let comment = ':warning: '
if (actor != 'BrewTestBot') {
comment += '@' + actor
}
comment += ' bottle publish [failed](' + url + ').'
github.issues.createComment({
...context.repo,
issue_number: pr,
body: '@' + actor + ' bottle publish [failed](' + url + ').'
body: comment
})
github.issues.removeLabel({