Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 872 Bytes

README.md

File metadata and controls

26 lines (23 loc) · 872 Bytes

Convert all files in a directory

This action will convert all 3D files in a directory to your desired format. You will need to generate a KITTYCAD_TOKEN here and add it to your repo's secrets

Example usage:

name: Convert files
on:
    pull_request:
jobs:
  test-convert-directory-action:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: KittyCAD/[email protected]
        with:
          kittycad-token: ${{ secrets.KITTYCAD_TOKEN }}
          input-directory: original-files-path
          output-directory: converted-files-path
          conversion-type: fbx
      - name: Check files converted
        run: ls converted-files-path # prints converted file names

Be sure to look at our other Github Actions.