Skip to content

Commit

Permalink
Create UpdatePhotoList.yml
Browse files Browse the repository at this point in the history
Action to populate .txt file with file names of all files in /photos directory
  • Loading branch information
atorresen authored Feb 13, 2024
1 parent 5219558 commit f0c54f8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/UpdatePhotoList.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f0c54f8

Please sign in to comment.