Skip to content

Commit

Permalink
feat: use set-upstream (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
imos authored Dec 24, 2024
1 parent 9312696 commit 903cb01
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/sync-archive-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Git
run: |
Expand Down Expand Up @@ -41,11 +39,12 @@ jobs:
git add -A
git commit --allow-empty -am "Sync files from archive branch (excluding .xz files)"
git log
if git diff --quiet HEAD main; then
echo "branch_name=" >> $GITHUB_ENV
else
git push origin $BRANCH_NAME
git push --set-upstream origin $BRANCH_NAME
echo "branch_name=$BRANCH_NAME" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 903cb01

Please sign in to comment.