-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: make notion and database id optional
This commit makes the notion API key, database ID, and website tag optional in the manual-rebuild and update-content workflows.
- Loading branch information
Showing
2 changed files
with
3 additions
and
10 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
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 |
---|---|---|
|
@@ -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) |