diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml index 69cc24aeb3..bfbc2397b8 100644 --- a/.github/workflows/create-pr.yml +++ b/.github/workflows/create-pr.yml @@ -39,8 +39,9 @@ jobs: composer remove ${{ env.PACKAGE }} \ && composer require ${{ env.PACKAGE }} attempt_limit: 200 - # TODO: Remember to change hardcoded url check. - if: ${{ env.BUILD_URL && env.PACKAGE && startsWith(env.BUILD_URL, 'https://github.com/reload/poc-dpl-react-pr-trigger/releases/download') }} + if: ${{ env.BUILD_URL && env.PACKAGE && startsWith(env.BUILD_URL, env.ACCPETED_BUILD_URL_PREFIX) }} + env: + ACCPETED_BUILD_URL_PREFIX: ${{ secrets.ACCPETED_BUILD_URL_PREFIX }} - name: Create branch and PR run: |