-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 #886 from Azure/commit_json_to_branch
generate_sonic_image_links.sh is modified to checkout a dedicated branch(sonic_latest_images_links) and commit the sonic images links related json file to this branch. json file from master branch is no more required and hence it is deleted. html file updated to use the json file that is getting created in the branch
- Loading branch information
Showing
4 changed files
with
10 additions
and
7 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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
#!/usr/bin/env bash | ||
git checkout -b sonic_latest_images_links | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "xinliu-seattle" | ||
git reset --hard | ||
git pull origin sonic_latest_images_links | ||
|
||
#set -euo pipefail | ||
|
||
|
@@ -145,8 +150,6 @@ do | |
done | ||
echo "\n}" >> sonic_image_links.json | ||
|
||
git config --global user.email "[email protected]" | ||
git config --global user.name "xinliu-seattle" | ||
git add sonic_image_links.json | ||
git commit -m "latest links for sonic images" | ||
git push | ||
git commit -m "latest links for sonic images in dedicated branch sonic_latest_images_links" | ||
git push -f --set-upstream origin sonic_latest_images_links |
Empty file.
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