diff --git a/.github/workflows/notion.yml b/.github/workflows/notion.yml index 7a5a1eb9..347b4789 100644 --- a/.github/workflows/notion.yml +++ b/.github/workflows/notion.yml @@ -20,6 +20,7 @@ jobs: runs-on: ubuntu-latest env: TZ: 'America/Los_Angeles' + DEFAULT_COMMIT_MESSAGE: 'chore: update from Notion' permissions: contents: write steps: @@ -67,7 +68,7 @@ jobs: if: ${{ steps.stage.outputs.CHANGES_EXIST == 'true' }} uses: planetscale/ghcommit-action@v0.1.33 with: - commit_message: ${{ github.event.client_payload.commit_message || github.event.inputs.commit_message || 'chore: update from Notion' }} + commit_message: ${{ github.event.client_payload.commit_message || github.event.inputs.commit_message || env.DEFAULT_COMMIT_MESSAGE }} repo: ${{ github.repository }} branch: ${{ github.head_ref || github.ref_name }} env: