From 62171ed77aa080134cbe6195f43738ab66172878 Mon Sep 17 00:00:00 2001 From: Tom Arra Date: Thu, 22 Feb 2024 08:07:06 -0600 Subject: [PATCH] chore: add label sync action (#35) --- .github/labels.yml | 21 ++++++++++++++------- .github/workflows/sync_labels.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/sync_labels.yaml diff --git a/.github/labels.yml b/.github/labels.yml index c45ba54..98638d3 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -1,27 +1,34 @@ -- name: very_good_core +- name: "product: very_good_core" color: "31E6FF" description: Changes that affect the Very Good Core template. + aliases: [very_good_core] -- name: very_good_dart_cli +- name: "product: very_good_dart_cli" color: "03505A" description: Changes that affect the Very Good Dart CLI template. + aliases: [very_good_dart_cli] -- name: very_good_dart_package +- name: "product: very_good_dart_package" color: "008799" description: Changes that affect the Very Good Dart Package template. + aliases: [very_good_dart_package] -- name: very_good_docs_site +- name: "product: very_good_docs_site" color: "004699" description: Changes that affect the Very Good Docs Site template. + aliases: [very_good_docs_site] -- name: very_good_flame_game +- name: "product: very_good_flame_game" color: "990900" description: Changes that affect the Very Good Flame Game template. + aliases: [very_good_flame_game] -- name: very_good_flutter_package +- name: "product: very_good_flutter_package" color: "00C9C9" description: Changes that affect the Very Good Flutter Package template. + aliases: [very_good_flutter_package] -- name: very_good_wear_app +- name: "product: very_good_wear_app" color: "1B03AD" description: Changes that affect the Very Good Wear App template. + aliases: [very_good_wear_app] diff --git a/.github/workflows/sync_labels.yaml b/.github/workflows/sync_labels.yaml new file mode 100644 index 0000000..e19767c --- /dev/null +++ b/.github/workflows/sync_labels.yaml @@ -0,0 +1,24 @@ +name: ♻️ Sync Labels + +on: + push: + paths: + - .github/labels.yml + branches: + - main + workflow_dispatch: + +jobs: + labels: + name: ♻️ Sync labels + runs-on: ubuntu-20.04 + steps: + - name: ⤵️ Check out code from GitHub + uses: actions/checkout@v4 + + - name: 🚀 Run Label Sync + uses: srealmoreno/label-sync-action@v1 + with: + config-file: | + .github/labels.yml + https://raw.githubusercontent.com/VeryGoodOpenSource/.github/main/.github/labels.yml