Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Sniezka1927 committed Jan 3, 2025
1 parent bab135e commit 07e81b9
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/prune.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,25 @@ jobs:
# Re-initialize LFS properly
git lfs install
- name: Update repository
run: |
# Fetch lfs-test branch without LFS
git fetch origin lfs-test --no-tags
# Create/update lfs-test branch
git checkout -B lfs-test
echo "Repository updated. LFS objects cleaned."
- name: Update repository
run: |
# Ensure we have the right remote URL with token
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git
# Try to fetch the specific branch, create if it doesn't exist
if git fetch origin lfs-test --no-tags; then
echo "Fetched existing lfs-test branch"
git checkout -B lfs-test origin/lfs-test
else
echo "Creating new lfs-test branch"
git checkout --orphan lfs-test
git reset --hard
fi
# Make sure we're on the right branch
git branch --show-current
echo "Repository updated. LFS objects cleaned."
- name: Verify cleanup
run: |
Expand Down

0 comments on commit 07e81b9

Please sign in to comment.