这是indexloc提供的服务,不要输入任何密码
Skip to content

Remove build label on PR #72

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

Merged
merged 1 commit into from
May 29, 2022
Merged
Changes from all 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
38 changes: 0 additions & 38 deletions .github/workflows/test-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,43 +250,5 @@ jobs:
- name: Build production
id: build
run: npm run build:prod
continue-on-error: true
env:
CI: true

- name: Comment on PR with build status
if: ${{ github.event_name }} == 'pull_request'
uses: actions/github-script@v6
with:
script: |
if ( '${{ steps.build.outcome }}' != 'success' ) {
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['Build:Failing']
})
if ( ${{ github.event.label.name == 'Build:Passing' }} ) {
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'Build:Passing'
})
}
} else {
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['Build:Passing']
})
if ( ${{ github.event.label.name == 'Build:Failing' }} ) {
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'Build:Failing'
})
}
}