Fetch Images #2
This file contains hidden or 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: Fetch Images | |
| on: | |
| workflow_dispatch: | |
| env: | |
| UNSPLASH_ACCESS_KEY: ${{ secrets.UNSPLASH_ACCESS_KEY }} | |
| UNSPLASH_COLLECTION_ID: ${{ vars.UNSPLASH_COLLECTION_ID }} | |
| jobs: | |
| fetch: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install | |
| run: npm ci | |
| - name: Fetch | |
| run: bash fetch.sh | |
| - name: Commit and push | |
| run: | | |
| git config --global user.email "${GITHUB_ACTOR}" | |
| git config --global user.name "${GITHUB_ACTOR}@users.noreply.github.com" | |
| git add -A | |
| git commit -m "update images" | |
| git push origin |