File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed
Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,22 @@ jobs:
103103 run : |
104104 poetry remove "${DEP_NAME}"
105105 VERSION_NUMBER="${VERSION#v}"
106- poetry add "${DEP_NAME}"=="${VERSION_NUMBER}" --group main
107- poetry add "${DEP_NAME}"=="${VERSION_NUMBER}" --group integration
106+
107+ for i in {1..30}; do
108+ echo "Attempt $i: adding ${DEP_NAME}==${VERSION_NUMBER}"
109+
110+ if poetry add "${DEP_NAME}==${VERSION_NUMBER}" --group main && \
111+ poetry add "${DEP_NAME}==${VERSION_NUMBER}" --group integration; then
112+ echo "Dependency added successfully"
113+ exit 0
114+ fi
115+
116+ echo "Not resolvable yet, sleeping..."
117+ sleep 60
118+ done
119+
120+ echo "Poetry could not resolve ${DEP_NAME}==${VERSION_NUMBER}"
121+ exit 1
108122
109123 - name : Poetry update
110124 run : poetry update "${DEP_NAME}"
@@ -145,9 +159,12 @@ jobs:
145159 ### What's Changed
146160 ${{ steps.get-tag.outputs.VERSION_CONTENT }}"
147161
148- gh pr create \
162+ PR_URL=$( gh pr create \
149163 --title "patch: Bump ${DEP_NAME} to ${VERSION}" \
150164 --body "${BODY}" \
151165 --base ${{ env.BASE_BRANCH }} \
152166 --head "${PR_BRANCH}" \
153167 --reviewer "${{ steps.get-reviewers.outputs.REVIEWERS }}"
168+ )
169+ # shellcheck disable=SC2086
170+ echo "- ${{ matrix.repo }}: ${PR_URL}" >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments