Skip to content

Commit

Permalink
checks simpler version
Browse files Browse the repository at this point in the history
  • Loading branch information
Nowosad committed Jan 4, 2024
1 parent f1b35b7 commit 3e3646f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/prep-book-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ jobs:
- name: Copy
env:
SRC_FOLDER_PATH1: 'ipynb'
SRC_FOLDER_PATH2: 'data'
#SRC_FOLDER_PATH2: 'data'
TARGET_BRANCH: 'geocompy'
run: |
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 'action@github.com'
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 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

0 comments on commit 3e3646f

Please sign in to comment.