-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8f5508
commit 267b58e
Showing
6 changed files
with
155 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Add bookmark with additional properties | ||
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 bookmark. Separate each tag with a comma. Optional. | ||
type: string | ||
rating: | ||
description: Rate the bookmark from 1 to 5. Optional. | ||
type: string | ||
quote: | ||
description: Add a quote from the bookmark. Optional. | ||
type: string | ||
|
||
jobs: | ||
add-bookmark: | ||
runs-on: macOS-latest | ||
name: Add bookmark | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Bookmark action | ||
uses: ./ | ||
with: | ||
filename: _data/recipes.json | ||
additional-properties: rating,quote | ||
- 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 |
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
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
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
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
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