forked from LMFDB/lmfdb
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 886 Bytes
/
Copy pathsnippet_generate.yml
File metadata and controls
32 lines (27 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Generate Snippet Code Files
on:
push:
branches:
- main
paths:
- '**/code*.yaml'
jobs:
snippet-generate:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4 # Or a specific version
- name: Set up environment
uses: ./.github/actions/snippet_setup
- name: Generate snippets
if: matrix.files != 'lint'
shell: bash -l {0}
run: |
sage -python lmfdb/tests/generate_snippet_tests.py generate -i magma
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: snippet code test files generated by action
title: Code snippets from snippet-generate action
body: This is an auto-generated PR with code snippets from yaml files.
labels: code snippets, automated pr