File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches :
66 - master
77 paths :
8- - ' printer_controller/**'
9- - ' .github/workflows/printer_controller.yml'
8+ - ' printer_controller/pyproject.toml'
109
1110jobs :
11+ version :
12+ runs-on : ubuntu-latest
13+ outputs :
14+ VERSION : ${{ steps.get_version.outputs.VERSION }}
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+ - name : Install dependencies
19+ run : |
20+ python -m pip install --upgrade pip
21+ pip install toml
22+ - name : Get version from pyproject.toml file
23+ id : get_version
24+ working-directory : ./printer_controller
25+ run : |
26+ version=$(python -c "import toml; print(toml.load('pyproject.toml')['project']['version'])")
27+ echo "VERSION=${version}" >> $GITHUB_OUTPUT
28+ - name : Set VERSION for next jobs
29+ id : set_version
30+ run : echo "VERSION=${{ steps.get_version.outputs.VERSION }}" >> $GITHUB_ENV
31+
1232 docker :
33+ needs :
34+ - version
1335 runs-on : ubuntu-latest
1436 steps :
1537 - name : Checkout
2244 images : |
2345 icroboticssociety/discord-printer-controller
2446 tags : |
47+ type=raw,value=${{ needs.version.outputs.VERSION }}
2548 type=raw,value=latest
2649 type=sha
2750 -
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ [project ]
2+ name = " ICRS 3D Printer Discord Control Interface"
3+ version = " 1.0.0"
4+ description = " Discord Interface for controlling 3D printers. Provides basic functionality for starting/resuming prints and viewing live feed."
5+ requires-python = " >=3.8"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments