Skip to content

Commit

Permalink
add NOTION_API_KEY and debug
Browse files Browse the repository at this point in the history
  • Loading branch information
liyaka committed Jan 1, 2025
1 parent c0b3c3a commit abc11db
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions update-notion-database/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,19 @@ runs:
run: |
pip install notion-df pandas
echo "DEBUG:"
echo "::add-mask::false"
echo "NOTION_TOKEN is ${{ inputs.notion_token }}"
echo "DATABASE_ID is ${{ inputs.database_id }}"
echo "::add-mask::true"
echo "FIELDS_JSON is ${{ inputs.fields_json }}"
echo "UNIQUE_FIELDS is ${{ inputs.unique_fields }}"
- name: Update Notion Database
shell: python
env:
NOTION_TOKEN: ${{ inputs.notion_token }}
NOTION_API_KEY: ${{ inputs.notion_token }} # add the default env var as well
DATABASE_ID: ${{ inputs.database_id }}
FIELDS_JSON: ${{ inputs.fields_json }}
UNIQUE_FIELDS: ${{ inputs.unique_fields }}
Expand Down

0 comments on commit abc11db

Please sign in to comment.