Skip to content

Commit

Permalink
Use sample site
Browse files Browse the repository at this point in the history
  • Loading branch information
katydecorah committed Jun 19, 2024
1 parent 26b875c commit 995bd11
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 12 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/metadata-advanced.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Seasonal metadata post

# Grant the action permission to write to the repository
permissions:
contents: write

on:
workflow_dispatch:
schedule:
Expand Down Expand Up @@ -58,8 +62,8 @@ jobs:
- name: Write metadata post
uses: ./
with:
github-username: katydecorah
github-repository: archive
github-username: library-pals
github-repository: sample-site
source-bookmarks: recipes|_data/recipes.json
book-tags: "recommend,skip"
start-date: ${{ env.START_DATE }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/metadata-own-template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Uses a custom markdown template (`post-template`) and customizes the `posts-directory`, with a manual workflow trigger.

# Grant the action permission to write to the repository
permissions:
contents: write

on:
workflow_dispatch:
inputs:
Expand All @@ -26,8 +30,8 @@ jobs:
- name: Write metadata post
uses: ./
with:
github-username: katydecorah
github-repository: archive
github-username: library-pals
github-repository: sample-site
post-template: .github/actions/post-template-basic.md
posts-directory: books/
source-bookmarks: recipes|_data/recipes.json
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- name: Write metadata post
uses: ./
with:
github-username: katydecorah
github-repository: archive
github-username: library-pals
github-repository: sample-site
source-bookmarks: recipes|_data/recipes.json
env:
TOKEN: ${{ secrets.TOKEN }}
Expand Down
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
- name: Write metadata post
uses: library-pals/[email protected]
with:
github-username: katydecorah
github-repository: archive
github-username: library-pals
github-repository: sample-site
source-bookmarks: recipes|_data/recipes.json
env:
TOKEN: ${{ secrets.TOKEN }}
Expand All @@ -62,6 +62,10 @@ jobs:
```yml
name: Seasonal metadata post

# Grant the action permission to write to the repository
permissions:
contents: write

on:
workflow_dispatch:
schedule:
Expand Down Expand Up @@ -120,8 +124,8 @@ jobs:
- name: Write metadata post
uses: library-pals/[email protected]
with:
github-username: katydecorah
github-repository: archive
github-username: library-pals
github-repository: sample-site
source-bookmarks: recipes|_data/recipes.json
book-tags: "recommend,skip"
start-date: ${{ env.START_DATE }}
Expand All @@ -146,6 +150,10 @@ jobs:
```yml
name: Uses a custom markdown template (`post-template`) and customizes the `posts-directory`, with a manual workflow trigger.

# Grant the action permission to write to the repository
permissions:
contents: write

on:
workflow_dispatch:
inputs:
Expand All @@ -172,8 +180,8 @@ jobs:
- name: Write metadata post
uses: library-pals/[email protected]
with:
github-username: katydecorah
github-repository: archive
github-username: library-pals
github-repository: sample-site
post-template: .github/actions/post-template-basic.md
posts-directory: books/
source-bookmarks: recipes|_data/recipes.json
Expand Down

0 comments on commit 995bd11

Please sign in to comment.