added some notebooks to trigger #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Labelbox Example Notebook Format | ||
on: | ||
push: | ||
branches: [develop] | ||
paths: | ||
- examples/** | ||
pull_request: | ||
branches: [develop] | ||
paths: | ||
- examples/** | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
jobs: | ||
if: github.event.pull_request.merged == False | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/notebooks | ||
with: | ||
rye-version: ${{ vars.RYE_VERSION }} | ||
python-version: ${{ inputs.python-version }} | ||
- name: Format | ||
working-directory: examples | ||
run: rye run clean | ||
- name: Commit changes | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git add examples/. | ||
git commit -m ":art: Cleaned" || exit 0 | ||
- name: Push changes | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.head_ref }} |