@@ -60,23 +60,19 @@ jobs:
6060
6161 - name : Create Pull Request
6262 if : steps.git-check.outputs.changes == 'true'
63- run : |
64- # Create a new branch with timestamp
65- BRANCH_NAME="update-packages-$(date +%Y%m%d-%H%M%S)"
66- git checkout -b $BRANCH_NAME
67-
68- # Commit changes
69- git commit -m "Add new packages from repo.magento.com"
63+ uses : peter-evans/create-pull-request@v7
64+ with :
65+ token : ${{ secrets.GITHUB_TOKEN }}
66+ commit-message : Add new packages from repo.magento.com
67+ title : Add new packages from repo.magento.com
68+ body : |
69+ This PR adds new packages downloaded from repo.magento.com by the automated workflow.
7070
71- # Push to the repository
72- git push origin $BRANCH_NAME
71+ Please rebuild the mirror after merging.
7372
74- # Create PR using GitHub CLI
75- gh pr create \
76- --title "Add new packages from repo.magento.com" \
77- --body "This PR adds new packages downloaded from repo.magento.com by the automated workflow. Please rebuild the mirror after merging." \
78- --repo "mage-os/generate-mirror-repo-js" \
79- --base main \
80- --head $BRANCH_NAME
81- env :
82- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73+ Auto-generated by [download-missing-packages workflow](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
74+ branch : update-packages
75+ delete-branch : true
76+ base : main
77+ add-paths : |
78+ resource/additional-packages/**
0 commit comments