From 24aca31bce584c98ebbd10f1fca7ee394f5dcca6 Mon Sep 17 00:00:00 2001 From: "e.muhamethanov" Date: Wed, 14 Aug 2024 16:51:02 +0300 Subject: [PATCH] feat: add deppendabot_pull_request_check workflow --- .../dependabot_pull_request_check.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/dependabot_pull_request_check.yml diff --git a/.github/workflows/dependabot_pull_request_check.yml b/.github/workflows/dependabot_pull_request_check.yml new file mode 100644 index 0000000000..2a828fd478 --- /dev/null +++ b/.github/workflows/dependabot_pull_request_check.yml @@ -0,0 +1,28 @@ +name: Dependabot PR Check + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + check-dependabot-pr: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'yarn' + + - name: Install dependencies + run: YARN_ENABLE_SCRIPTS=false yarn install --immutable --check-cache --check-resolutions + + - name: Report lint results + if: ${{ !cancelled() }} + uses: VKCOM/gh-actions/VKUI/add-dependabot-pr-milestone@main + with: + token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}