markdownlint/.github/workflows/update-test-repos.yml
dependabot[bot] 5db10cc29f
Some checks failed
Checkers / linkcheck (push) Has been cancelled
Checkers / spellcheck (push) Has been cancelled
CI / build (20, macos-latest) (push) Has been cancelled
CI / build (20, ubuntu-latest) (push) Has been cancelled
CI / build (20, windows-latest) (push) Has been cancelled
CI / build (22, macos-latest) (push) Has been cancelled
CI / build (22, ubuntu-latest) (push) Has been cancelled
CI / build (22, windows-latest) (push) Has been cancelled
CI / build (24, macos-latest) (push) Has been cancelled
CI / build (24, ubuntu-latest) (push) Has been cancelled
CI / build (24, windows-latest) (push) Has been cancelled
CI / pnpm (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
TestRepos / build (latest, ubuntu-latest) (push) Has been cancelled
UpdateTestRepos / update (push) Has been cancelled
Bump actions/setup-node from 4 to 5
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 5.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 19:32:12 -07:00

41 lines
1.2 KiB
YAML

name: UpdateTestRepos
on:
push:
branches-ignore:
- 'dependabot/**'
schedule:
- cron: '30 12 * * *'
workflow_dispatch:
jobs:
update:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
ref: next
- uses: actions/setup-node@v5
- run: git config user.email "david@dlaa.me"
- run: git config user.name "David Anson"
- run: git checkout -b update-test-repos-$GITHUB_RUN_ID
- run: npm install
- run: npm run update-test-repos
env:
AVA_FORCE_CI: not-ci
- run: git diff --exit-code
continue-on-error: true
id: diff
- run: git add .
if: ${{ success() && steps.diff.outcome == 'failure' }}
- run: git commit -m "Update test repository snapshots."
if: ${{ success() && steps.diff.outcome == 'failure' }}
- run: git push --set-upstream origin update-test-repos-$GITHUB_RUN_ID
if: ${{ success() && steps.diff.outcome == 'failure' }}
- run: gh pr create --base next --body "" --title "Update test repository snapshots."
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ success() && steps.diff.outcome == 'failure' }}