From 79bacc199f7fcfb0592b119cea66d92c658c4678 Mon Sep 17 00:00:00 2001 From: Julien Tanay Date: Sat, 2 Mar 2024 09:10:28 +0100 Subject: [PATCH] chore: debug commit --- .github/workflows/dependabot.yml | 38 +++++++++++++++----------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index 9e0688c..dec23b2 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -4,29 +4,32 @@ on: pull_request permissions: pull-requests: write + contents: write env: OXLINT_PACKAGE_NAME: oxlint jobs: - setup: - runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' - outputs: - oxlint-updated: ${{ contains(steps.metadata.outputs.dependency-names, env.OXLINT_PACKAGE_NAME) }} - steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@v1 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" + # setup: + # runs-on: ubuntu-latest + # if: github.actor == 'dependabot[bot]' + # outputs: + # oxlint-updated: ${{ contains(steps.metadata.outputs.dependency-names, env.OXLINT_PACKAGE_NAME) }} + # steps: + # - name: Dependabot metadata + # id: metadata + # uses: dependabot/fetch-metadata@v1 + # with: + # github-token: "${{ secrets.GITHUB_TOKEN }}" bump-oxlint-rules: runs-on: ubuntu-latest - needs: setup - if: needs.setup.outputs.oxlint-updated == 'true' + # needs: setup + # if: needs.setup.outputs.oxlint-updated == 'true' steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} - name: Install pnpm uses: pnpm/action-setup@v2 @@ -44,12 +47,7 @@ jobs: - name: Bump oxlint rules run: | pnpm run generate + git config --global user.name "dependabot[bot]" + git config --global user.email "49699333+dependabot[bot]@users.noreply.github.com" git commit -am "feat(oxlint): bump oxlint rules" git push - - # - name: Enable auto-merge for Dependabot PRs - # if: steps.metadata.outputs.update-type == 'version-update:semver-patch' - # run: gh pr merge --auto --merge "$PR_URL" - # env: - # PR_URL: ${{github.event.pull_request.html_url}} - # GH_TOKEN: ${{secrets.GITHUB_TOKEN}}