Skip to content

Add bookmark (https://cooking.nytimes.com/recipes/1026326-ginger-cheesecake-cookies) #40

Add bookmark (https://cooking.nytimes.com/recipes/1026326-ginger-cheesecake-cookies)

Add bookmark (https://cooking.nytimes.com/recipes/1026326-ginger-cheesecake-cookies) #40

Workflow file for this run

name: Add bookmark
run-name: Add bookmark (${{ inputs.url }})
on:
workflow_dispatch:
inputs:
url:
description: The URL to bookmark.
required: true
type: string
notes:
description: Notes about the bookmark.
type: string
date:
description: Date (YYYY-MM-DD). The default date is today.
type: string
tags:
description: Add tags to categorize the book. Separate each tag with a comma. Optional.
type: string
permissions:
contents: write
jobs:
add-bookmark:
runs-on: ubuntu-latest
name: Add bookmark
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bookmark action
uses: ./
with:
filename: _data/recipes.json
- name: Download the thumbnail image
run: curl "${{ env.BookmarkImage }}" -o "img/${{ env.BookmarkImageOutput }}"
if: env.BookmarkImage != ''
- name: Commit files
run: |
git pull
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A && git commit -m "Bookmark ${{ env.BookmarkTitle }}"
git push