Skip to content

Bump faraday from 2.14.0 to 2.14.1 in the bundler group across 1 directory #8

Bump faraday from 2.14.0 to 2.14.1 in the bundler group across 1 directory

Bump faraday from 2.14.0 to 2.14.1 in the bundler group across 1 directory #8

name: Auto-merge Dependabot PRs
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Build Jekyll site
run: bundle exec jekyll build
env:
JEKYLL_ENV: production
- name: Test build output
run: |
if [ ! -d "_site" ]; then
echo "Build failed: _site directory not found"
exit 1
fi
if [ ! -f "_site/index.html" ]; then
echo "Build failed: index.html not generated"
exit 1
fi
echo "Build successful!"
auto-merge:
needs: build
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Fetch Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve PR
run: |
gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge
run: |
gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}