diff --git a/.github/workflows/auto-label.json5 b/.github/workflows/auto-label.json5 new file mode 100644 index 0000000..7860c50 --- /dev/null +++ b/.github/workflows/auto-label.json5 @@ -0,0 +1,6 @@ +{ + labelsNotAllowed: [ + 'Fora dos padrões', + 'Falta de informações' + ] +} \ No newline at end of file diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml new file mode 100644 index 0000000..c51a69d --- /dev/null +++ b/.github/workflows/auto-label.yml @@ -0,0 +1,17 @@ +name: Labeling new issue + +on: + issues: + types: ['opened'] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: | + .github/workflows/auto-label.json5 + sparse-checkout-cone-mode: false + - uses: Renato66/auto-label@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/label-new-issue.yml b/.github/workflows/label-new-issue.yml deleted file mode 100644 index 7e63a33..0000000 --- a/.github/workflows/label-new-issue.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Labeling new issue - -on: - issues: - types: [opened] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: Renato66/auto-label@v2.0.1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - labels-not-allowed: "Fora dos padrões|Falta de informações"