From 5cd93e4e0febe8b885fa051550359c2e2709011c Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Fri, 31 Jul 2020 12:22:18 -0500 Subject: [PATCH 1/7] changed Repo Dispatch step values - changed token value to use , so as to be both more descriptive of exactly what it is used for, and also leave room for future uses of the same token for different events (for example triggering a test workflow on pushes or merges) - changed repository reference to use context instead of hard coded value, to allow workflows to work for users who fork --- .github/workflows/trigger_docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml index 1d842b60c..0c078c367 100644 --- a/.github/workflows/trigger_docker.yml +++ b/.github/workflows/trigger_docker.yml @@ -12,7 +12,7 @@ jobs: - name: 🚀 Repository Dispatch uses: peter-evans/repository-dispatch@v1 with: - token: ${{ secrets.DOCKER_ACCESS_TOKEN }} - repository: OctoPrint/docker + token: ${{ secrets.TRIGGER_DOCKER_RELEASE_TOKEN }} + repository: ${{ github.repository_owner }}/docker event-type: octoprint-release client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "event-name": "${{ github.event_name }}", "event-type": "${{ github.event.action }}"}' From c235b122014e44c86f3ab4a245925f73a971c149 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Fri, 31 Jul 2020 12:30:19 -0500 Subject: [PATCH 2/7] update target repository changing to reflect updates to the OctoPrint/docker repo changing name to OctoPrint/octoprint-docker --- .github/workflows/trigger_docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml index 0c078c367..56776d9de 100644 --- a/.github/workflows/trigger_docker.yml +++ b/.github/workflows/trigger_docker.yml @@ -12,7 +12,7 @@ jobs: - name: 🚀 Repository Dispatch uses: peter-evans/repository-dispatch@v1 with: - token: ${{ secrets.TRIGGER_DOCKER_RELEASE_TOKEN }} - repository: ${{ github.repository_owner }}/docker + token: ${{ secrets.OCTOPRINT_DOCKER_DISPATCH_TOKEN }} + repository: ${{ github.repository_owner }}/octoprint-docker event-type: octoprint-release client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "event-name": "${{ github.event_name }}", "event-type": "${{ github.event.action }}"}' From 3dc181e3fb921d24fe4255c192927c1499011eaf Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Fri, 31 Jul 2020 14:22:08 -0500 Subject: [PATCH 3/7] flatten payload removes duplication of data, since all the points of data that we were explicitly setting were already children of the github.event object --- .github/workflows/trigger_docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml index 56776d9de..7dd73b4f0 100644 --- a/.github/workflows/trigger_docker.yml +++ b/.github/workflows/trigger_docker.yml @@ -14,5 +14,5 @@ jobs: with: token: ${{ secrets.OCTOPRINT_DOCKER_DISPATCH_TOKEN }} repository: ${{ github.repository_owner }}/octoprint-docker - event-type: octoprint-release - client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "event-name": "${{ github.event_name }}", "event-type": "${{ github.event.action }}"}' + event-type: ${{ github.event.action }} + client-payload: '{"ref": "${{ github.event }}"}' From 6fed292ef1728f883c5a1128fc7f3099c0f3c3c9 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Mon, 10 Aug 2020 07:42:19 -0500 Subject: [PATCH 4/7] update payload --- .github/workflows/trigger_docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml index 7dd73b4f0..37e1ab0f0 100644 --- a/.github/workflows/trigger_docker.yml +++ b/.github/workflows/trigger_docker.yml @@ -12,7 +12,7 @@ jobs: - name: 🚀 Repository Dispatch uses: peter-evans/repository-dispatch@v1 with: - token: ${{ secrets.OCTOPRINT_DOCKER_DISPATCH_TOKEN }} + token: ${{ secrets.DOCKER_ACCESS_TOKEN }} repository: ${{ github.repository_owner }}/octoprint-docker - event-type: ${{ github.event.action }} - client-payload: '{"ref": "${{ github.event }}"}' + event-type: ${{ github.event_name }} + client-payload: '{"tag_name": "${{ github.event.release.tag_name }}"}' From b09c0d6819d74ca95f46732e38e4c1fa58ae3945 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Fri, 14 Aug 2020 09:50:24 -0500 Subject: [PATCH 5/7] updated AUTHORS.md --- AUTHORS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AUTHORS.md b/AUTHORS.md index db2e16367..0fdf73304 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -115,6 +115,7 @@ date of first contribution): * [Ludovico de Nittis](https://github.com/RyuzakiKK) * [Dominik Paľo](https://github.com/DominikPalo) * [Kelly Anderson](https://github.com/cbxbiker61) +<<<<<<< HEAD * [Jim Neill](https://github.com/jneilliii) * [Dustin Kerber](https://github.com/kerber) * [Tobias Schürg](https://github.com/tobiasschuerg) @@ -122,6 +123,9 @@ date of first contribution): * [Lachlan Cresswell](https://github.com/lachyc) * [Khoi Pham](https://github.com/osubuu) * [Federico Nembrini](https://github.com/FedericoNembrini) +======= + * [Brian Vanderbusch](https://github.com/LongLiveCHIEF) +>>>>>>> updated AUTHORS.md OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by [Daid Braam](https://github.com/daid). Parts of its communication layer and From 711aae9c85f9807f98d30a26cc28e239bec95961 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Fri, 14 Aug 2020 09:55:52 -0500 Subject: [PATCH 6/7] cast event-type --- .github/workflows/trigger_docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml index 37e1ab0f0..ef39f5868 100644 --- a/.github/workflows/trigger_docker.yml +++ b/.github/workflows/trigger_docker.yml @@ -14,5 +14,5 @@ jobs: with: token: ${{ secrets.DOCKER_ACCESS_TOKEN }} repository: ${{ github.repository_owner }}/octoprint-docker - event-type: ${{ github.event_name }} + event-type: 'release' client-payload: '{"tag_name": "${{ github.event.release.tag_name }}"}' From c7ef487f2b8a6ddda06d9a6df1df685c3cf6a3e9 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Fri, 14 Aug 2020 10:06:31 -0500 Subject: [PATCH 7/7] fix AUTHORS.md accidentally left in conflict characters from rebase --- AUTHORS.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/AUTHORS.md b/AUTHORS.md index 0fdf73304..94d6e6dc5 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -115,7 +115,6 @@ date of first contribution): * [Ludovico de Nittis](https://github.com/RyuzakiKK) * [Dominik Paľo](https://github.com/DominikPalo) * [Kelly Anderson](https://github.com/cbxbiker61) -<<<<<<< HEAD * [Jim Neill](https://github.com/jneilliii) * [Dustin Kerber](https://github.com/kerber) * [Tobias Schürg](https://github.com/tobiasschuerg) @@ -123,9 +122,7 @@ date of first contribution): * [Lachlan Cresswell](https://github.com/lachyc) * [Khoi Pham](https://github.com/osubuu) * [Federico Nembrini](https://github.com/FedericoNembrini) -======= * [Brian Vanderbusch](https://github.com/LongLiveCHIEF) ->>>>>>> updated AUTHORS.md OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by [Daid Braam](https://github.com/daid). Parts of its communication layer and