ci/cd: create a PR instead of commiting for update aaguids workflow

This commit is contained in:
Elias Schneider
2025-05-05 09:38:55 +02:00
parent 5d78445501
commit 364f5b38b9

View File

@@ -7,6 +7,7 @@ on:
permissions: permissions:
contents: write contents: write
pull-requests: write
jobs: jobs:
update-aaguids: update-aaguids:
@@ -25,10 +26,13 @@ jobs:
mkdir -p backend/resources mkdir -p backend/resources
jq -c 'map_values(.name)' data.json > backend/resources/aaguids.json jq -c 'map_values(.name)' data.json > backend/resources/aaguids.json
- name: Commit changes - name: Create Pull Request
run: | uses: peter-evans/create-pull-request@v7
git config --local user.email "action@github.com" with:
git config --local user.name "GitHub Action" commit-message: "chore: update AAGUIDs"
git add backend/resources/aaguids.json title: "chore: update AAGUIDs"
git diff --staged --quiet || git commit -m "chore: update AAGUIDs" body: |
git push This PR updates the AAGUIDs file with the latest data from the [passkey-aaguids](https://github.com/pocket-id/passkey-aaguids) repository.
branch: update-aaguids
base: main
delete-branch: true