From fbe4dc53f7d4d1ff74f4eabd500250ed557b98fa Mon Sep 17 00:00:00 2001 From: Collin McNeese Date: Wed, 23 Nov 2022 10:47:29 -0600 Subject: [PATCH] template-deploy DRY-up from initial Signed-off-by: Collin McNeese --- .github/workflows/template-deploy.yml | 34 +++++++-------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/.github/workflows/template-deploy.yml b/.github/workflows/template-deploy.yml index 98fc1a7..0375dbf 100644 --- a/.github/workflows/template-deploy.yml +++ b/.github/workflows/template-deploy.yml @@ -21,38 +21,20 @@ jobs: with: script: | let labels = [ - { - name: 'jenkins', - color: '00FFFF', - }, - { - name: 'azure-devops', - color: '00FFFF', - }, - { - name: 'circle-ci', - color: '00FFFF', - }, - { - name: 'gitlab', - color: '00FFFF', - }, - { - name: 'travis-ci', - color: '00FFFF', - }, - { - name: 'actions-importer-running', - color: '00FFFF', - } + 'jenkins', + 'azure-devops', + 'circle-ci', + 'gitlab', + 'travis-ci', + 'actions-importer-running' ]; labels.forEach( (label) => { github.rest.issues.createLabel({ owner: context.repo.owner, repo: context.repo.repo, - name: label.name, - color: label.color, + name: label, + color: '00FFFF', description: 'Label used by Issue Ops workflow.' }); });