Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test action #4

Merged
merged 8 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions .github/workflows/output-from-kcl-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: KittyCAD/action-install-cli@v0.2.12
- name: Get KCL Outputs
env:
KITTYCAD_TOKEN: ${{ secrets.KITTYCAD_TOKEN }}
KITTYCAD_TOKEN: 26364955-bc2b-4f1f-a22b-c3a258267d81
run: |
sed -i '/---/q' README.md
for file in *.kcl; do
Expand All @@ -25,14 +25,26 @@ jobs:
echo "#### [$fileName](STEP-output-of-samples/$fileName.step)" >> README.md
echo "![$fileName](screenshots-of-samples/$fileName.png)" >> README.md
done
- name: Commit files
- name: check for changes
id: git-check
run: |
git add .
if git status | grep -q "Changes to be committed"
then
echo "::set-output name=modified::true"
else
echo "::set-output name=modified::false"
fi
- name: Commit changes, if any
if: steps.git-check.outputs.modified == 'true'
run: |
git config --local user.email "
git config --local user.name "github-actions[bot]"
git add .
git commit -m "In the realm of scripts and screens, adding a dash of mechanical dreams."
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
git fetch origin
echo ${{ github.head_ref }}
git checkout ${{ github.head_ref }}
git commit -am "In the realm of scripts and screens, adding a dash of mechanical dreams." || true
git push
git push origin ${{ github.head_ref }}
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# kcl-samples
KCL sample files
KCL sample files.


---
#### [bracket](STEP-output-of-samples/bracket.step)
![bracket](screenshots-of-samples/bracket.png)
#### [gear](STEP-output-of-samples/gear.step)
![gear](screenshots-of-samples/gear.png)
#### [kitt](STEP-output-of-samples/kitt.step)
![kitt](screenshots-of-samples/kitt.png)
#### [mounting-plate](STEP-output-of-samples/mounting-plate.step)
![mounting-plate](screenshots-of-samples/mounting-plate.png)
2 changes: 1 addition & 1 deletion STEP-output-of-samples/bracket.step
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should offer a flag in the cli that stabilises this date?

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ISO-10303-21;
HEADER;
FILE_DESCRIPTION((('kittycad.io export')), '2;1');
FILE_NAME('dump.step', '2023-11-10T11:02:26.252243469+00:00', ('Author unknown'), ('Organization unknown'), 'kittycad.io beta', 'kittycad.io', 'Authorization unknown');
FILE_NAME('dump.step', '2023-11-10T11:45:44.656234026+00:00', ('Author unknown'), ('Organization unknown'), 'kittycad.io beta', 'kittycad.io', 'Authorization unknown');
FILE_SCHEMA(('AP203_CONFIGURATION_CONTROLLED_3D_DESIGN_OF_MECHANICAL_PARTS_AND_ASSEMBLIES_MIM_LF'));
ENDSEC;
DATA;
Expand Down
2,181 changes: 2,181 additions & 0 deletions STEP-output-of-samples/gear.step

Large diffs are not rendered by default.

Loading