Skip to content

Commit 1b09b86

Browse files
CopilotLiNk-NY
andcommitted
Use force-with-lease only for devel bump pushes
Agent-Logs-Url: https://github.com/Bioconductor/bioconductor_docker/sessions/010475d9-4251-4f9f-bfe8-2db1de732264 Co-authored-by: LiNk-NY <4392950+LiNk-NY@users.noreply.github.com>
1 parent 7b26928 commit 1b09b86

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/create-release-branch.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ jobs:
8181
8282
git add Dockerfile
8383
git commit -m "$PR_TITLE"
84-
git push origin "$BRANCH_NAME"
84+
if [ "$VERSION" == "devel" ]; then
85+
git push --force-with-lease origin "$BRANCH_NAME"
86+
else
87+
git push origin "$BRANCH_NAME"
88+
fi
8589
8690
if [ "$VERSION" == "devel" ]; then
8791
gh pr create \

0 commit comments

Comments
 (0)