Skip to content

Commit

Permalink
changes to the github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
biplovbhandari committed Nov 1, 2023
1 parent c1b0b9e commit 6c589ed
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/sync-ee-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,8 @@ jobs:
env:
GEE_REPO: ${{ secrets.GEE_REPO }}
run: |
# Create the gee-repo directory if it doesn't exist
# mkdir -p gee-repo
# cd gee-repo
# Initialize as a Git repo only if it's not already one
# if [ ! -d ".git" ]; then
# git init
# fi
# # Add the remote only if it hasn't been added before
# if ! git remote | grep -q 'origin'; then
# git remote add origin https://earthengine.googlesource.com/${GEE_REPO}
# fi
# Pull the latest changes from the external GEE_REPO
git pull https://earthengine.googlesource.com/${GEE_REPO}.git master --allow-unrelated-histories || bash -c "git checkout --theirs . ; git add -u ; git commit -m 'autoMerge'"
# Push the changes back to the external GEE_REPO if there were any; ideally this won't change anything
# git push https://earthengine.googlesource.com/${GEE_REPO} master
# Commit any changes that were pulled into gee-repo
# git add .
# git commit -m "Update gee-repo with latest changes from GEE_REPO"
# Push the commit to the main GitHub repository
git push

0 comments on commit 6c589ed

Please sign in to comment.