Skip to content

Commit 514d034

Browse files
author
kiran-garre
committed
Test workflow 5; reset instead of pull
1 parent 27db585 commit 514d034

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs-generation/create-docs-pr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ git commit -m "Update docs based on PR #$PR_NUMBER
1919
2020
Auto-generated by Q"
2121

22-
git push origin "$BRANCH_NAME"
22+
git push -u origin "$BRANCH_NAME"
2323

2424
# Create PR
2525
gh pr create \

docs-generation/update-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fi
1111
# Create branch before making any changes
1212
git checkout -B "$BRANCH_NAME"
1313
if git ls-remote --exit-code --heads origin $BRANCH_NAME; then
14-
git pull origin $BRANCH_NAME --force
14+
git reset --hard origin/$BRANCH_NAME
1515
fi
1616

1717
PROMPT="Before making any changes, read the 'docs' directory for the project's current

0 commit comments

Comments
 (0)