Skip to content

Update 11-07

Update 11-07 #1

Workflow file for this run

name: Lint
on: [pull_request]
jobs:
clear-notebook:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 2
- uses: actions/setup-python@v1
with:
python-version: 3.11
- run: |
python -m pip install --upgrade pip
python3 -m pip install nb-clean
- run: nb-clean clean ./Motus/Motus_Backend_Sandbox.ipynb
- name: Get last commit message
id: last-commit
run: |
echo "message=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT
echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_author: ${{ steps.last-commit.outputs.author }}
commit_message: ${{ steps.last-commit.outputs.message }} (outputs cleaned)
commit_user_name: NotebookBot
commit_options: '--amend --no-edit --allow-empty'
push_options: '--force'
skip_fetch: true