Skip to content

Commit

Permalink
Trying to manipulate composer json 1707
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceo committed May 15, 2024
1 parent f87e072 commit fc045b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ jobs:
git config --global user.name [email protected]
git config --global user.email [email protected]
git checkout -b ${{ env.PR_BRANCH }}
git push --set-upstream origin ${{ env.PR_BRANCH }}
composer config repositories.danskernesdigitalebibliotek/dpl-react '{"type":"package","package":{"name":"danskernesdigitalebibliotek\/dpl-react","version":"dev","type":"drupal-library","dist":{"url":"${{ env.BUILD_URL }}","type":"zip"},"require":{"composer\/installers":"^1.2.0"}}}'
composer remove danskernesdigitalebibliotek/dpl-react \
&& composer require danskernesdigitalebibliotek/dpl-react
git push --set-upstream origin ${{ env.PR_BRANCH }}
git commit --allow-empty -m "What a difference a commit makes..."
git add composer.json composer.lock
git commit -m "Use new dependency url on dpl-react: ${{ env.BUILD_URL }}"
git push
gh pr create --base develop --head ${{ env.PR_BRANCH }} --title "PR for ${{ env.PR_BRANCH }}" --body "This is an automated PR for ${{ env.PR_BRANCH }}"
if: ${{ env.PR_BRANCH && env.BUILD_URL }}
Expand Down

0 comments on commit fc045b3

Please sign in to comment.