diff --git a/.github/workflows/UpdatePhotoList.yml b/.github/workflows/UpdatePhotoList.yml new file mode 100644 index 0000000..cdd77c5 --- /dev/null +++ b/.github/workflows/UpdatePhotoList.yml @@ -0,0 +1,17 @@ +name: Update Photo List +on: + push +jobs: + updateImageList: # you can put any name here + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 # Checkout repo + - shell: bash + run: ls -Rpm1 ./photos/ > photo.txt # Saving file list into a file + - name: Save changes + uses: actions-go/push@v1 # pushing the changes to the repo + with: + force: true + commit-files: photo.txt + commit-message: Updating photo list +# code taken from https://stackoverflow.com/questions/63759173/dynamically-load-all-images-from-folder-subfolders-with-javascript