Daily test sync #1
This file contains 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: Daily test sync | |
on: | |
schedule: | |
- cron: '20 20 * * *' | |
workflow_dispatch: {} | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'tabatkins' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: install dependencies | |
run: | | |
pip install -r .github/workflows/update-tests/requirements.txt | |
pip install --editable . | |
bikeshed update | |
- name: update tests | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
rm -rf tests/github | |
python .github/workflows/update-tests/update.py | |
# paths need to be relative to tests/ | |
(cd tests; find github -type f) | xargs bikeshed test --rebase | |
- name: Create/Update PR | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
branch: daily-test-sync | |
commit-message: 'chore: Sync Bikeshed files from specs.data list' | |
title: 'Daily sync of Bikeshed files from specs.data' |