From 9de8f55c0a01a784cfb0251b2b36f834456b7c04 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Fri, 11 Jun 2021 11:11:54 +0200 Subject: [PATCH] Add a GitHub Actions workflow to automatically sync the repository labels. This commit adds a `.github/workflow/sync-labels.yml` file, which defines a workflow that syncs this repository's labels with the contents of the `.github/labels.yml` file. The labels are synced automatically whenever the `.github/labels.yml` file changes. --- .github/workflows/sync-labels.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/sync-labels.yml diff --git a/.github/workflows/sync-labels.yml b/.github/workflows/sync-labels.yml new file mode 100644 index 0000000..d2d9bef --- /dev/null +++ b/.github/workflows/sync-labels.yml @@ -0,0 +1,21 @@ +name: Tools + +on: + push: + branches: [main] + paths: + - .github/labels.yml + - .github/workflows/sync-labels.yml + schedule: + - cron: 0 0 1 * * + workflow_dispatch: + +jobs: + sync-labels: + name: Sync labels + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f + - uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}