GithubHelp home page GithubHelp logo

Comments (4)

welcome avatar welcome commented on August 10, 2024

🙌 Thanks for opening your first issue here! Be sure to follow the issue template!

from toc-generator.

technote-space avatar technote-space commented on August 10, 2024

@hanxiao
In order to avoid complicating the use of actions, it was disallowed to be triggered by schedule events.
In version 3, it has been changed to run on the schedule event.
Please try v3 below.

name: Autocommit

on:
  schedule:
    - cron: "0 23 * * *"

jobs:
  autocommit:
    if: |
      !startsWith(github.event.head_commit.message, 'chore') &&
      !startsWith(github.event.head_commit.message, 'build: hotfix') &&
      !endsWith(github.event.head_commit.message, 'reformatted by jina-dev-bot')
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          token: ${{ secrets.JINA_DEV_BOT }}
          ref: ${{ github.event.pull_request.head.sha }}

#      ...

      - name: Generate TOC
        uses: technote-space/toc-generator@v3
        with:
          MAX_HEADER_LEVEL: 2
          # FOLDING: false  ## (default: false)
          GITHUB_TOKEN: ${{ secrets.JINA_DEV_BOT }}
          COMMIT_NAME: Jina Dev Bot
          COMMIT_EMAIL: [email protected]
          TOC_TITLE: ''
          TARGET_PATHS: 'README*.md,CHANGELOG.md,CONTRIBUTING.md'
          # COMMIT_MESSAGE: 'chore(docs): update TOC'  ## In v3, the default commit message has been changed to this message
          # CHECK_ONLY_DEFAULT_BRANCH: true  ## If you want not to check existing PRs
          # CREATE_PR: true ## If you want to create a PullRequest instead of committing directly

#      ...

Configuration Examples

from toc-generator.

hanxiao avatar hanxiao commented on August 10, 2024

I see! great, I've upgraded my TOC generator to v3. Now it should work from tonight, will close this issue tomorrow if everything works fine!

from toc-generator.

hanxiao avatar hanxiao commented on August 10, 2024

solved! thanks a lot!

from toc-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.