From d740ea68a3773c80ffe2a93a2f62930f0658b8f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kuna?= <1282324+codecalm@users.noreply.github.com> Date: Wed, 13 Mar 2024 02:36:41 +0100 Subject: [PATCH] Github Actions comments (#1047) --- .github/labeler.yml | 5 +++++ .github/workflows/labeler.yml | 12 +++++++++++ .github/workflows/validate-icons.yml | 14 ++++++++++++- pnpm-lock.yaml | 30 ++++++++++++++-------------- 4 files changed, 45 insertions(+), 16 deletions(-) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..ff3062c73c --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,5 @@ +# For changed dependencies +📦 dependencies: + - changed-files: + - any-glob-to-any-file: + - pnpm-lock.yaml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..bf474c4787 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +name: 'Pull Request Labeler' +on: + - pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 diff --git a/.github/workflows/validate-icons.yml b/.github/workflows/validate-icons.yml index 3640d79eeb..5da9d10411 100644 --- a/.github/workflows/validate-icons.yml +++ b/.github/workflows/validate-icons.yml @@ -2,8 +2,12 @@ name: Validate icons on: [pull_request] +permissions: + pull-requests: write + jobs: validate: + if: github.repository == 'tabler/tabler-icons' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -35,4 +39,12 @@ jobs: run: pnpm install --no-frozen-lockfile - name: Validate icons - run: pnpm validate + id: validate + run: pnpm run --silent validate >> ./comment-markup.md + + - name: Comment PR + uses: thollander/actions-comment-pull-request@v2 + with: + filePath: ./comment-markup.md + comment_tag: validate + mode: recreate diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 12747418f5..fe17b47547 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -123,25 +123,25 @@ importers: packages/icons-eps: dependencies: '@tabler/icons': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../icons packages/icons-pdf: dependencies: '@tabler/icons': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../icons packages/icons-png: dependencies: '@tabler/icons': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../icons packages/icons-preact: dependencies: '@tabler/icons': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../icons devDependencies: '@preact/preset-vite': @@ -157,7 +157,7 @@ importers: packages/icons-react: dependencies: '@tabler/icons': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../icons devDependencies: '@testing-library/react': @@ -182,7 +182,7 @@ importers: packages/icons-react-native: dependencies: '@tabler/icons': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../icons devDependencies: '@testing-library/react': @@ -213,7 +213,7 @@ importers: packages/icons-solidjs: dependencies: '@tabler/icons': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../icons devDependencies: '@solidjs/testing-library': @@ -232,13 +232,13 @@ importers: packages/icons-sprite: dependencies: '@tabler/icons': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../icons packages/icons-svelte: dependencies: '@tabler/icons': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../icons devDependencies: '@sveltejs/package': @@ -266,7 +266,7 @@ importers: packages/icons-vue: dependencies: '@tabler/icons': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../icons devDependencies: '@testing-library/vue': @@ -288,7 +288,7 @@ importers: packages/icons-webfont: dependencies: '@tabler/icons': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../icons devDependencies: sass: @@ -301,7 +301,7 @@ importers: test/test-preact: dependencies: '@tabler/icons-preact': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../../packages/icons-preact preact: specifier: ^10.19.6 @@ -314,7 +314,7 @@ importers: test/test-react: dependencies: '@tabler/icons-react': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../../packages/icons-react react: specifier: ^18.2.0 @@ -336,7 +336,7 @@ importers: test/test-svelte: dependencies: '@tabler/icons-svelte': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../../packages/icons-svelte devDependencies: '@sveltejs/vite-plugin-svelte': @@ -358,7 +358,7 @@ importers: test/test-vue: dependencies: '@tabler/icons-vue': - specifier: 3.0.0 + specifier: 3.0.1 version: link:../../packages/icons-vue vue: specifier: ^3.4.20