diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml index 8b82afe98..0b4553545 100644 --- a/.github/workflows/trigger_docker.yml +++ b/.github/workflows/trigger_docker.yml @@ -4,16 +4,44 @@ on: types: - released - prereleased + push: + branches: + - maintenance + - devel jobs: - trigger: + dispatch_releases: runs-on: ubuntu-latest - if: github.repository == 'OctoPrint/OctoPrint' + if: github.repository == 'OctoPrint/OctoPrint' && github.event_name != 'push' steps: - name: 🚀 Repository Dispatch uses: peter-evans/repository-dispatch@v1 with: token: ${{ secrets.DOCKER_ACCESS_TOKEN }} repository: ${{ github.repository_owner }}/octoprint-docker - event-type: github.event.action + event-type: ${{ github.event_name }} client-payload: '{"tag_name": "${{ github.event.release.tag_name }}"}' + + dispatch_canary: + runs-on: ubuntu-latest + if: github.repository == 'OctoPrint/OctoPrint' && github.event_name == 'push' && github.ref == 'refs/heads/maintenance' + steps: + - name: 🚀 Repository Dispatch + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.DOCKER_ACCESS_TOKEN }} + repository: ${{ github.repository_owner }}/octoprint-docker + event-type: "canary" + client-payload: '{"tag_name": "${{ github.sha }}"}' + + dispatch_bleeding: + runs-on: ubuntu-latest + if: github.repository == 'OctoPrint/OctoPrint' && github.event_name == 'push' && github.ref == 'refs/heads/devel' + steps: + - name: 🚀 Repository Dispatch + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.DOCKER_ACCESS_TOKEN }} + repository: ${{ github.repository_owner }}/octoprint-docker + event-type: "bleeding" + client-payload: '{"tag_name": "${{ github.sha }}"}' diff --git a/docs/api/job.rst b/docs/api/job.rst index e8250c172..e95729459 100644 --- a/docs/api/job.rst +++ b/docs/api/job.rst @@ -205,8 +205,10 @@ Retrieve information about the current job }, "estimatedPrintTime": 8811, "filament": { - "length": 810, - "volume": 5.36 + "tool0": { + "length": 810, + "volume": 5.36 + } } }, "progress": {