markdownlint/.github/workflows/update-test-repos.yml
David Anson 16fd77d455 wip
2025-07-06 05:46:38 +00:00

28 lines
706 B
YAML

name: UpdateTestRepos
on:
push:
branches-ignore:
- 'dependabot/**'
schedule:
- cron: '30 12 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: next
- uses: actions/setup-node@v4
# - run: export BRANCHNAME=$(date +update-test-repos-%Y%m%d%H%M%S)
- run: git checkout -b update-test-repos-$GITHUB_RUN_ID
- run: npm install
- run: npm run update-test-repos
continue-on-error: true
- run: exit 0
if: ${{ success() }}
- run: git add .
- run: git commit -m "Update test repo snapshots."
- run: git push --set-upstream origin update-test-repos-$GITHUB_RUN_ID