diff --git a/.github/workflows/dependabot-merge.yml b/.github/workflows/dependabot-merge.yml deleted file mode 100644 index eb041bf..0000000 --- a/.github/workflows/dependabot-merge.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Update NPM dependencies - -on: - pull_request: - types: [opened, synchronize] - paths: ["package.json", "package-lock.json"] - -jobs: - npm: - runs-on: ubuntu-latest - name: Update NPM dependencies - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '20.x' - - name: Install dependencies - run: npm ci - - name: Merge Dependabot PR - uses: actions/github-script@v5 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const { data: pullRequest } = await github.pulls.get({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number - }); - if (pullRequest.user.login === 'dependabot[bot]') { - await github.pulls.merge({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number - }); - }