File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Fetch Images
2+
3+ on :
4+ workflow_dispatch :
5+
6+ env :
7+ UNSPLASH_ACCESS_KEY : ${{ secrets.UNSPLASH_ACCESS_KEY }}
8+ UNSPLASH_COLLECTION_ID : ${{ vars.UNSPLASH_COLLECTION_ID }}
9+
10+ jobs :
11+ dist :
12+ runs-on : ubuntu-latest
13+ permissions :
14+ contents : write
15+ steps :
16+ - name : Setup Node
17+ uses : actions/setup-node@v6
18+ with :
19+ node-version : 24
20+ - name : Checkout
21+ uses : actions/checkout@v6
22+ - name : Install
23+ run : npm ci
24+ - name : Fetch
25+ run : bash fetch.sh
26+ - name : Commit and push
27+ run : git add -A && git commit -m "update images" && git push origin
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ name: GitHub Pages
33on :
44 workflow_dispatch :
55 push :
6+ workflow_run :
7+ workflows : [Fetch Images]
8+ types :
9+ - completed
610
711jobs :
812 build-deploy :
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5- . .env
5+ if [ -f " .env" ]; then
6+ . .env
7+ fi
68
79OUTPUT_DIR=./images
810MAX_HEIGHT=1000
You can’t perform that action at this time.
0 commit comments