You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2023/10/18 18:45:16 UTC
[logging-parent] 02/02: Add --force to the release pushes performed by the CI
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch release/10.2.0
in repository https://gitbox.apache.org/repos/asf/logging-parent.git
commit 13ee5ca880ef515b69fb1fc6b5fe2e1807e48be6
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Wed Oct 18 20:42:11 2023 +0200
Add --force to the release pushes performed by the CI
If the `deploy` step fails, the Github Actions run will be two commits
behind the tip of the branch. We must allow the workflow to remove the
last two (automatic) commits from the branch.
Repos should use a `concurrency` setting to prevent Github Actions from
removing manually added commits.
---
.github/workflows/deploy-release-reusable.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/deploy-release-reusable.yaml b/.github/workflows/deploy-release-reusable.yaml
index f8f24d7..d7f2060 100644
--- a/.github/workflows/deploy-release-reusable.yaml
+++ b/.github/workflows/deploy-release-reusable.yaml
@@ -111,7 +111,7 @@ jobs:
git config user.name "ASF Logging Services RM"
git config user.email private@logging.apache.org
git commit -S pom.xml -m "Set version to \`$PROJECT_VERSION\`"
- git push origin
+ git push -f origin
fi
- name: Release changelog
@@ -128,7 +128,7 @@ jobs:
git config user.name "ASF Logging Services RM"
git config user.email private@logging.apache.org
git commit -S src -m "Release changelog for version \`$PROJECT_VERSION\`"
- git push origin
+ git push -f origin
fi
- name: Build the website