Skip to content

Commit

Permalink
chore: debug commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Djiit committed Mar 2, 2024
1 parent 1f57e8c commit 79bacc1
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/dependabot.yml
Expand Up @@ -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
Expand All @@ -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}}

0 comments on commit 79bacc1

Please sign in to comment.