Skip to content

chore(deps-dev): bump the eslint group with 2 updates #16

chore(deps-dev): bump the eslint group with 2 updates

chore(deps-dev): bump the eslint group with 2 updates #16

Workflow file for this run

on: pull_request_target
name: Dependabot
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
jobs:
dependabot-update-lockfile:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: ./.github/actions/setup-bun
- name: Set @github-actions[bot] as committer
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- run: git status
- run: git add -A
- run: |
git commit -m "chore(deps-dev): bump bun lockfile"
- run: git push
dependabot-build:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
needs: [dependabot-update-lockfile]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: ./.github/actions/setup-bun
- uses: ./.github/actions/build
- uses: ./.github/actions/prevent-uncommit-changes
- run: bun test
- run: bun run lint
dependabot-automerge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
needs: [dependabot-build]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1
- name: Approve a PR
if: ${{contains(fromJSON('["version-update:semver-patch", "version-update:semver-minor"]'), steps.metadata.outputs.update-type)}}
run: gh pr review --approve "$PR_URL" -b "**Automatically approving** pull request because **it includes a minor/patch update**"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.DEPENDABOT_AUTOMERGE_TOKEN}}
- name: Enable auto-merge for Dependabot PRs
if: ${{contains(fromJSON('["version-update:semver-patch", "version-update:semver-minor"]'), steps.metadata.outputs.update-type)}}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.DEPENDABOT_AUTOMERGE_TOKEN}}