From 9d40f8088fe79035e2bd11570733391c8b3053df Mon Sep 17 00:00:00 2001 From: Steve Springett Date: Thu, 19 Feb 2026 17:33:55 -0600 Subject: [PATCH] Changed to using PRs due to branch protection Signed-off-by: Steve Springett --- .../workflows/generate_algorithm_families.yml | 28 ++++++++----------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/workflows/generate_algorithm_families.yml b/.github/workflows/generate_algorithm_families.yml index 826233f3..351f09cb 100644 --- a/.github/workflows/generate_algorithm_families.yml +++ b/.github/workflows/generate_algorithm_families.yml @@ -13,6 +13,7 @@ jobs: permissions: contents: write + pull-requests: write steps: - name: Checkout repository @@ -29,20 +30,13 @@ jobs: working-directory: tools/src/main/python run: python3 algorithmFamilyGeneration.py - - name: Check for changes and commit - run: | - SCHEMA_FILE="schema/cryptography-defs.schema.json" - - # Add the file - git add "$SCHEMA_FILE" - - # Check if there are staged changes - if git diff --staged --quiet; then - echo "No changes to algorithm families" - else - echo "Committing algorithm family changes" - git config --local user.email "github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - git commit -m "chore: update algorithm families [skip ci]" - git push - fi + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "chore: update algorithm families [skip ci]" + branch: "update-algorithm-families" + title: "chore: update algorithm families" + body: "This PR updates `schema/cryptography-defs.schema.json` with the latest algorithm families generated from `schema/cryptography-defs.json`." + base: "master" + delete-branch: true