Skip to content

Commit b7ef7b2

Browse files
authored
Merge pull request #58 from automationiberia/fix/release-verify-one-publish-success
Allow release to continue when one publish target succeeds
2 parents 7a8f6a1 + 9f773c9 commit b7ef7b2

2 files changed

Lines changed: 29 additions & 2 deletions

File tree

.github/workflows/release_auto.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,31 @@ jobs:
271271
needs:
272272
- release_galaxy
273273
- release_ah
274-
if: ${{ !cancelled() && needs.release_galaxy.result == 'success' && needs.release_ah.result == 'success' }}
274+
# Continue the release flow when at least one publish target succeeds
275+
# (Galaxy token issues must not block Automation Hub / merge).
276+
if: >-
277+
always() &&
278+
!cancelled() &&
279+
(needs.release_galaxy.result == 'success' ||
280+
needs.release_ah.result == 'success')
275281
runs-on: ubuntu-latest
276282
steps:
277-
- run: echo "All releases completed successfully"
283+
- name: Report publish results
284+
env:
285+
GALAXY_RESULT: ${{ needs.release_galaxy.result }}
286+
AH_RESULT: ${{ needs.release_ah.result }}
287+
run: |
288+
echo "Publish to Galaxy: ${GALAXY_RESULT}"
289+
echo "Publish to Automation Hub: ${AH_RESULT}"
290+
if [ "${GALAXY_RESULT}" = "success" ] && [ "${AH_RESULT}" = "success" ]; then
291+
echo "::notice::Both Galaxy and Automation Hub publishes succeeded."
292+
exit 0
293+
fi
294+
if [ "${GALAXY_RESULT}" = "success" ]; then
295+
echo "::warning::Automation Hub publish did not succeed (${AH_RESULT}); continuing with Galaxy only."
296+
exit 0
297+
fi
298+
echo "::warning::Galaxy publish did not succeed (${GALAXY_RESULT}); continuing with Automation Hub only."
278299
279300
upload_tarball:
280301
name: Upload Tarball to Release
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
bugfixes:
3+
- release automation - treat Verify Releases as successful when either
4+
Galaxy or Automation Hub publish succeeds so a single publish failure
5+
does not abort merge and EE build.
6+
...

0 commit comments

Comments
 (0)