From 995bd11c1114982cf5a77259aebf4bf9e9f1c943 Mon Sep 17 00:00:00 2001 From: Katy DeCorah Date: Wed, 19 Jun 2024 19:58:29 -0400 Subject: [PATCH] Use sample site --- .github/workflows/metadata-advanced.yml | 8 ++++++-- .github/workflows/metadata-own-template.yml | 8 ++++++-- .github/workflows/metadata.yml | 4 ++-- README.md | 20 ++++++++++++++------ 4 files changed, 28 insertions(+), 12 deletions(-) diff --git a/.github/workflows/metadata-advanced.yml b/.github/workflows/metadata-advanced.yml index 836a154..5b95e6d 100644 --- a/.github/workflows/metadata-advanced.yml +++ b/.github/workflows/metadata-advanced.yml @@ -1,5 +1,9 @@ name: Seasonal metadata post +# Grant the action permission to write to the repository +permissions: + contents: write + on: workflow_dispatch: schedule: @@ -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 }} diff --git a/.github/workflows/metadata-own-template.yml b/.github/workflows/metadata-own-template.yml index d85bf35..9777331 100644 --- a/.github/workflows/metadata-own-template.yml +++ b/.github/workflows/metadata-own-template.yml @@ -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: @@ -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 diff --git a/.github/workflows/metadata.yml b/.github/workflows/metadata.yml index 73bfc95..e587c1d 100644 --- a/.github/workflows/metadata.yml +++ b/.github/workflows/metadata.yml @@ -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 }} diff --git a/README.md b/README.md index 8dd7312..65d3a2b 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,8 @@ jobs: - name: Write metadata post uses: library-pals/metadata-post-action@v0.0.0 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 }} @@ -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: @@ -120,8 +124,8 @@ jobs: - name: Write metadata post uses: library-pals/metadata-post-action@v0.0.0 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 }} @@ -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: @@ -172,8 +180,8 @@ jobs: - name: Write metadata post uses: library-pals/metadata-post-action@v0.0.0 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