Add photos page and directory #2
Workflow file for this run
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
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 |