Checkout ref before doing beachball checks #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dependabot Beachball Change Files | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
dependabot-beachball: | |
runs-on: ubuntu-latest | |
if: github.event.sender.login == 'dependabot[bot]' | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 0 | |
- name: Use Node.js 22.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- run: npm ci | |
- name: Run dependabot beachball automation | |
run: node .github/scripts/dependabot-beachball.mjs |