-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,12 @@ jobs: | |
- name: Copy | ||
env: | ||
SRC_FOLDER_PATH1: 'ipynb' | ||
#SRC_FOLDER_PATH2: 'data' | ||
SRC_FOLDER_PATH2: 'data' | ||
TARGET_BRANCH: 'geocompy' | ||
run: | | ||
git config --global --add safe.directory /__w/geocompy/geocompy | ||
files1=$(find $SRC_FOLDER_PATH1 -type f) # get the file list | ||
#files2=$(find $SRC_FOLDER_PATH2 -type f) # get the file list | ||
files2=$(find $SRC_FOLDER_PATH2 -type f) # get the file list | ||
git config --global user.name 'GitHub Action' | ||
git config --global user.email '[email protected]' | ||
git add *.ipynb | ||
|
@@ -34,7 +34,8 @@ jobs: | |
git fetch # fetch branches | ||
git checkout $TARGET_BRANCH # checkout to your branch | ||
git checkout ${GITHUB_REF##*/} -- $files1 # copy files from the source branch | ||
#git checkout ${GITHUB_REF##*/} -- $files2 # copy files from the source branch | ||
git mv ipynb/*.ipynb . # move files from ipynb to root | ||
git checkout ${GITHUB_REF##*/} -- $files2 # copy files from the source branch | ||
git add -A | ||
git diff-index --quiet HEAD || git commit -am "deploy files" # commit to the repository (ignore if no modification) | ||
git push origin $TARGET_BRANCH # push to remote branch |
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