Skip to content

Bump actions/checkout from 4 to 6 #2

Bump actions/checkout from 4 to 6

Bump actions/checkout from 4 to 6 #2

Workflow file for this run

name: Test and Merge
permissions:
contents: read
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
dependabot:
name: Dependabot auto-merge
runs-on: ubuntu-slim
needs: build
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'HTTPArchive/har.fyi'
permissions:
contents: write
pull-requests: write
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
- name: Enable auto-merge for Dependabot PRs
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: gh pr merge --auto --squash "$PR_URL"