Skip to content

Autocommit

Autocommit #1422

Workflow file for this run

name: Autocommit
on:
schedule:
- cron: "0 23 * * *"
workflow_dispatch:
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/[email protected]
with:
token: ${{ secrets.JINA_DEV_BOT }}
ref: ${{ github.event.pull_request.head.sha }}
- run: |
git config --local user.email "[email protected]"
git config --local user.name "Jina Dev Bot"
- uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Generate TOC
uses: technote-space/toc-generator@v3
with:
MAX_HEADER_LEVEL: 2
GITHUB_TOKEN: ${{ secrets.JINA_DEV_BOT }}
COMMIT_NAME: Jina Dev Bot
COMMIT_EMAIL: [email protected]
TOC_TITLE: ''
TARGET_PATHS: 'CHANGELOG.md,CONTRIBUTING.md,RELEASE.md'
CHECK_ONLY_DEFAULT_BRANCH: true
- uses: ad-m/[email protected]
with:
github_token: ${{ secrets.JINA_DEV_BOT }}
branch: master