diff --git a/.github/workflows/update-aaguids.yml b/.github/workflows/update-aaguids.yml index af27f167..5685758f 100644 --- a/.github/workflows/update-aaguids.yml +++ b/.github/workflows/update-aaguids.yml @@ -5,9 +5,10 @@ on: - cron: "0 0 * * 1" # Runs every Monday at midnight workflow_dispatch: # Allows manual triggering of the workflow -permissions: - contents: write - +permissions: + contents: write + pull-requests: write + jobs: update-aaguids: runs-on: ubuntu-latest @@ -25,10 +26,13 @@ jobs: mkdir -p backend/resources jq -c 'map_values(.name)' data.json > backend/resources/aaguids.json - - name: Commit changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add backend/resources/aaguids.json - git diff --staged --quiet || git commit -m "chore: update AAGUIDs" - git push + - name: Create Pull Request + uses: peter-evans/create-pull-request@v7 + with: + commit-message: "chore: update AAGUIDs" + title: "chore: update AAGUIDs" + body: | + 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