File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Generate Algorithm Families Enum
2+
3+ on :
4+ push :
5+ paths :
6+ - ' schema/cryptography-defs.json'
7+ - ' tools/src/main/python/algorithmFamilyGeneration.py'
8+ workflow_dispatch :
9+
10+ jobs :
11+ generate-families :
12+ runs-on : ubuntu-latest
13+
14+ permissions :
15+ contents : write
16+
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v6
20+ with :
21+ token : ${{ secrets.GITHUB_TOKEN }}
22+
23+ - name : Set up Python
24+ uses : actions/setup-python@v5
25+ with :
26+ python-version : ' 3.x'
27+
28+ - name : Run algorithm family generator
29+ run : python3 tools/src/main/python/algorithmFamilyGeneration.py
30+
31+ - name : Check for changes and commit
32+ run : |
33+ SCHEMA_FILE="schema/cryptography-defs.schema.json"
34+
35+ # Add the file
36+ git add "$SCHEMA_FILE"
37+
38+ # Check if there are staged changes
39+ if git diff --staged --quiet; then
40+ echo "No changes to algorithm families"
41+ else
42+ echo "Committing algorithm family changes"
43+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
44+ git config --local user.name "github-actions[bot]"
45+ git commit -m "chore: update algorithm families [skip ci]"
46+ git push
47+ fi
You can’t perform that action at this time.
0 commit comments