forked from climate-action-kits/pxt-fwd-edu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/fwdunc/pxt-fwd-edu
- Loading branch information
Showing
57 changed files
with
5,274 additions
and
645 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
name: Auto-bump | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
auto-bump: | ||
name: Auto-bump and release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- run: | | ||
npm install -g makecode | ||
- run: 'git config --global user.email "[email protected]"' | ||
|
||
- run: 'git config --global user.name "ross-inksmith"' | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Count new tutorials | ||
id: new_tutorials | ||
run: > | ||
echo "tutorial_count=" | ||
` | ||
git diff $(git describe --tags --abbrev=0):pxt.json pxt.json | | ||
grep -e '^[+-][^/]*.md' | | ||
wc -l | ||
` | ||
>> "$GITHUB_OUTPUT" | ||
- name: SANITY CHECK | ||
run: > | ||
echo "New tutorials: ${{ steps.new_tutorials.outputs.tutorial_count }}"; | ||
echo "bump: "`( | ||
[[ ${{ steps.new_tutorials.outputs.tutorial_count }} > 0 ]] && | ||
echo "minor" ) || | ||
echo "patch"`; | ||
- run: > | ||
makecode bump --`( | ||
[[ ${{ steps.new_tutorials.outputs.tutorial_count }} > 0 ]] && | ||
echo "minor" ) || | ||
echo "patch"` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
name: "Sanity check pxt.json" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
no_missing_files: | ||
name: "pxt.json only references existing files" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get pxt.json file list | ||
uses: sergeysova/jq-action@v2 | ||
id: pxtjson_files | ||
with: | ||
cmd: jq -r '.files | join(",")' pxt.json | ||
|
||
- name: Check all files exist | ||
uses: thebinaryfelix/[email protected] | ||
with: | ||
files: ${{ steps.pxtjson_files.outputs.value }} | ||
|
||
all_tutorials_included: | ||
name: "pxt.json includes all .md files" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Diff pxt.json vs find | ||
id: md_diff | ||
run: > | ||
diff | ||
<(jq -r '.files[] | select(. | match(".md"))' pxt.json | sort) | ||
<(find . -name '*.md' | sed 's_^./__' | sort) |
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.