From 7437d1556d5ac9b060f03e43ac523536d1a50f12 Mon Sep 17 00:00:00 2001 From: Bruce Bujon Date: Thu, 4 Jul 2024 14:25:31 +0200 Subject: [PATCH] fix(ci): Fix case where past automation branch where not deleted This happens when the generated PR is not merged. --- .github/workflows/add-release-to-cloudfoundry.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add-release-to-cloudfoundry.yaml b/.github/workflows/add-release-to-cloudfoundry.yaml index cffb17ee60e..7df10ad23ad 100644 --- a/.github/workflows/add-release-to-cloudfoundry.yaml +++ b/.github/workflows/add-release-to-cloudfoundry.yaml @@ -27,7 +27,7 @@ jobs: echo "${VERSION}: https://repo1.maven.org/maven2/com/datadoghq/dd-java-agent/${VERSION}/dd-java-agent-${VERSION}.jar" >> index.yml git add index.yml git commit -m "chore: Add version ${VERSION} to Cloud Foundry" - git push -u origin ci/cloudfoundry + git push -u origin ci/cloudfoundry --force gh pr create \ --title "Add version ${VERSION} to Cloud Foundry" \ --body "This PR add the version ${VERSION} to Cloud Foundry. Make sure [the JAR is online](https://repo1.maven.org/maven2/com/datadoghq/dd-java-agent/${VERSION}/dd-java-agent-${VERSION}.jar) before merging." \