From 43b41d2a4c0f5e8095a20e8e9e9c36eb248e1c82 Mon Sep 17 00:00:00 2001 From: klaasnicolaas Date: Sat, 29 Jun 2024 19:51:26 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'.github/'=20wi?= =?UTF-8?q?th=20remote=20'github/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release-drafter.yml | 2 ++ .github/workflows/pr-labels.yaml | 7 ++----- .github/workflows/sync-labels.yaml | 25 +++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/sync-labels.yaml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 604e4c5..dac9dad 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -58,6 +58,8 @@ version-resolver: template: | ## What's changed + _To receive a notification on new releases, click on **Watch** > **Custom** > **Releases** on the top._ + $CHANGES **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION diff --git a/.github/workflows/pr-labels.yaml b/.github/workflows/pr-labels.yaml index 7e5619b..fa69d61 100644 --- a/.github/workflows/pr-labels.yaml +++ b/.github/workflows/pr-labels.yaml @@ -12,16 +12,13 @@ on: workflow_call: jobs: - pr_labels: + validate: name: Verify runs-on: ubuntu-latest steps: - name: 🏷 Verify PR has a valid label - uses: jesusvasquez333/verify-pr-label-action@v1.4.0 + uses: klaasnicolaas/action-pr-labels@v2.0.0 with: - pull-request-number: "${{ github.event.pull_request.number }}" - github-token: "${{ secrets.GITHUB_TOKEN }}" valid-labels: >- breaking-change, bugfix, documentation, enhancement, sync, refactor, performance, new-feature, maintenance, ci, dependencies - disable-reviews: true diff --git a/.github/workflows/sync-labels.yaml b/.github/workflows/sync-labels.yaml new file mode 100644 index 0000000..f4e833a --- /dev/null +++ b/.github/workflows/sync-labels.yaml @@ -0,0 +1,25 @@ +--- +name: Sync labels + +# yamllint disable-line rule:truthy +on: + push: + branches: + - main + paths: + - .github/labels.yml + workflow_dispatch: + +jobs: + labels: + name: ♻️ Sync labels + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: ⤵️ Check out code from GitHub + uses: actions/checkout@v4.1.7 + - name: 🚀 Run Label Syncer + uses: micnncim/action-label-syncer@v1.3.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}