diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml index 31bc29b26..665d92175 100644 --- a/.github/workflows/create-pr.yml +++ b/.github/workflows/create-pr.yml @@ -27,14 +27,15 @@ jobs: git config --global user.name mikkel@reload.dk git config --global user.email mikkel@reload.dk 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 }}