Skip to content

Commit 950b4de

Browse files
authored
Merge branch '8/edge' into fix/refreshes-objects-order
2 parents 458a4ff + 227c8b6 commit 950b4de

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/bump_dependent_charms.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)