File tree Expand file tree Collapse file tree
tutorials/tutorial-01-basics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,10 +31,21 @@ jobs:
3131 - name : Check if tutorial changed
3232 id : changes
3333 run : |
34- if git diff --name-only ${{ github.event.before }}..${{ github.sha }} | grep -q "^${{ matrix.tutorial.path }}/"; then
34+ # Always deploy if manually triggered
35+ if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
3536 echo "changed=true" >> $GITHUB_OUTPUT
37+ exit 0
38+ fi
39+
40+ # For push events, check if files changed
41+ if [ -n "${{ github.event.before }}" ] && [ "${{ github.event.before }}" != "null" ]; then
42+ if git diff --name-only ${{ github.event.before }}..${{ github.sha }} | grep -q "^${{ matrix.tutorial.path }}/"; then
43+ echo "changed=true" >> $GITHUB_OUTPUT
44+ else
45+ echo "changed=false" >> $GITHUB_OUTPUT
46+ fi
3647 else
37- echo "changed=false " >> $GITHUB_OUTPUT
48+ echo "changed=true " >> $GITHUB_OUTPUT
3849 fi
3950
4051 - name : Deploy ${{ matrix.tutorial.name }}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ def _(mo):
1212
1313 This notebook demonstrates how to use the flixopt framework to model a minimalistic energy system
1414 with a boiler, heat demand, and natural gas supply.
15- THis has been updated again
15+ THis has been updated again, again
1616 """
1717 )
1818 return
You can’t perform that action at this time.
0 commit comments