-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from weecology/stop-stashing
Avoid stashing
- Loading branch information
Showing
2 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,10 @@ date=$(date '+%Y-%m-%d %H:%M:%S') | |
# Change directory to the everwatch-predictions | ||
cd /blue/ewhite/everglades/everwatch-predictions || exit | ||
|
||
# Stash any local changes, switch to the main branch, and pull the latest updates | ||
git stash | ||
git reset --hard | ||
git checkout main | ||
git pull origin main | ||
git fetch origin main | ||
git reset --hard origin/main | ||
|
||
# Set up the user information for Weecology Deploy Bot | ||
git config user.email "[email protected]" | ||
|
@@ -39,12 +39,6 @@ cp /blue/ewhite/everglades/everwatch-workflow/App/Zooniverse/data/PredictedBirds | |
git add PredictedBirds.zip PredictedBirds.csv | ||
git commit -m "Weecology Deploy Bot $date" | ||
|
||
# Uncomment the following line if you intend to push directly to the main branch | ||
# git push origin main | ||
|
||
# Reapply stashed changes, if any | ||
git stash pop || echo "No stashed changes to apply." | ||
|
||
# Set up the deploy remote for the portal-forecasts repository | ||
git remote remove deploy | ||
git remote add deploy https://${GITHUBTOKEN}@github.com/weecology/everwatch-predictions.git | ||
|