Skip to content

Commit

Permalink
ci: make notion and database id optional
Browse files Browse the repository at this point in the history
This commit makes the notion API key, database ID, and website tag optional in the manual-rebuild and update-content workflows.
  • Loading branch information
luandro committed Sep 6, 2024
1 parent d8c427f commit 3a88b5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/manual-rebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
inputs:
notion_api_key:
description: 'Notion API Key'
required: true
required: false
database_id:
description: 'Database ID'
required: true
required: false
website_tag:
description: 'Website Tag'
required: true
required: false

jobs:
rebuild-and-deploy:
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/update-content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,3 @@ jobs:
database_id: ${{ secrets.DATABASE_ID }}
website_tag: ${{ secrets.WEBSITE_TAG }}
base_url: /${{ github.event.repository.name }}

- name: Commit and push if changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git diff --quiet && git diff --staged --quiet || (git commit -m "Auto-update content" && git push)

0 comments on commit 3a88b5c

Please sign in to comment.