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 83415b8
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions .github/workflows/dependabot.yml
Expand Up @@ -4,27 +4,28 @@ 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

Expand All @@ -44,12 +45,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 83415b8

Please sign in to comment.