Skip to content

Commit

Permalink
chore(ci): pull latest branch before push
Browse files Browse the repository at this point in the history
  • Loading branch information
BobrImperator committed Sep 11, 2023
1 parent be0705e commit 4fc5125
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/twios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ jobs:
run: |
FORMATTED_DATE="$(date +"%Y-%m-%d")"
BRANCH_NAME="twios-$FORMATTED_DATE"
mkdir -p twios/
git fetch
git add . && git commit -m "$BRANCH_NAME"
git checkout -b $BRANCH_NAME
git push --set-upstream origin $BRANCH_NAME
gh pr create --base main --head $BRANCH_NAME --title "TWIOS $FORMATTED_DATE" --body-file comment.txt
git checkout $BRANCH_NAME
git pull
git add . && git commit -m "Edited $BRANCH_NAME"
git push

0 comments on commit 4fc5125

Please sign in to comment.