Skip to content

Commit

Permalink
DCM workflow no longer needs label
Browse files Browse the repository at this point in the history
  • Loading branch information
elliette committed Nov 3, 2023
1 parent 927c70e commit f1f6c94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/dcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@
name: Dart Code Metrics

on:
pull_request_target:
# labeled and unlabeled are required along with open to re-run
# workflow when the run-dcm-workflow label is added or removed.
types: [opened, labeled, unlabeled]
pull_request:
types: [synchronize, opened, reopened]
branches:
- master

jobs:
dcm:
if: contains(github.event.pull_request.labels.*.name, 'run-dcm-workflow')
name: Dart Code Metrics
runs-on: ubuntu-latest
steps:
Expand All @@ -39,5 +36,5 @@ jobs:
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: dwds
- name: Run DCM on DWDS
run: dcm analyze --ci-key="${{ secrets.DCM_CI_KEY }}" --email="${{ secrets.DCM_EMAIL }}" lib
run: dcm analyze lib
working-directory: dwds
20 changes: 0 additions & 20 deletions .github/workflows/dcm_label.yml

This file was deleted.

0 comments on commit f1f6c94

Please sign in to comment.