Add bookmark (https://cooking.nytimes.com/recipes/1026326-ginger-cheesecake-cookies) #40
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: 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 |