Update picofuzz data #123
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: Update picofuzz data | |
| on: | |
| schedule: | |
| # Run daily at 11:00 AM UTC | |
| - cron: '0 11 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| update-submodules: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| submodules: recursive | |
| - name: Update submodules | |
| run: | | |
| git config --global user.name 'github-actions[bot]' | |
| git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
| # Update submodules to latest commits on their default branches | |
| git submodule update --remote --recursive | |
| # Check if there are any changes | |
| if git diff --quiet; then | |
| echo "No submodule updates available" | |
| exit 0 | |
| fi | |
| - name: Regenerate picofuzz data | |
| run: ./populate.sh | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: 'chore: update submodules' | |
| title: 'chore: update submodules' | |
| body: | | |
| This PR automatically updates the submodules to their latest versions. | |
| Updated submodules: | |
| - jam-test-vectors | |
| Please review the changes before merging. | |
| branch: update-submodules | |
| delete-branch: true |