diff --git a/.github/workflows/5-sync-notion.yml b/.github/workflows/5-sync-notion.yml index a49ea3e..79c8964 100644 --- a/.github/workflows/5-sync-notion.yml +++ b/.github/workflows/5-sync-notion.yml @@ -1,9 +1,9 @@ name: sync-notion on: - push: - branches: - - main + # push: + # branches: + # - main schedule: - cron: "0 20 * * 0-4" @@ -11,13 +11,13 @@ on: env: ENABLE_NOTION_SYNC: ${{ vars.ENABLE_NOTION_SYNC }} - NOTION_PAGE_NAME: "nalbam" - NOTION_PAGE_ID: "7aace0412a82431996f61a29225a95ec" + KNOWLEDGE_BASE_ID: ${{ vars.KNOWLEDGE_BASE_ID }} + DATA_SOURCE_ID: ${{ vars.DATA_SOURCE_ID }} AWS_DEST_PATH: ${{ vars.AWS_DEST_PATH }} - KNOWLEDGE_BASE_ID: ${{ vars.KNOWLEDGE_BASE_ID }} - DATA_SOURCE_ID: ${{ vars.DATA_SOURCE_ID }} + NOTION_PAGE_NAME: "nalbam" + NOTION_PAGE_ID: "7aace0412a82431996f61a29225a95ec" jobs: sync: diff --git a/.github/workflows/6-start-ingestion.yml.stop b/.github/workflows/6-start-ingestion.yml similarity index 100% rename from .github/workflows/6-start-ingestion.yml.stop rename to .github/workflows/6-start-ingestion.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 35aecdd..2e4d8cd 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -5,6 +5,10 @@ on: branches: - main + repository_dispatch: + types: + - deploy + env: ALLOWED_CHANNEL_IDS: ${{ vars.ALLOWED_CHANNEL_IDS }} BOT_CURSOR: ${{ vars.BOT_CURSOR }} diff --git a/serverless.yml b/serverless.yml index 1fb3136..567e6d8 100644 --- a/serverless.yml +++ b/serverless.yml @@ -34,6 +34,8 @@ functions: - http: method: post path: /slack/events + tags: + Project: ${self:provider.environment.BASE_NAME} resources: Resources: