mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-15 01:11:07 +03:00
ci/cd: create a PR instead of commiting for update aaguids workflow
This commit is contained in:
18
.github/workflows/update-aaguids.yml
vendored
18
.github/workflows/update-aaguids.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user