From e2349b4565f5b1a41a0efde7feeaf372600b0b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 30 May 2022 14:45:16 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=91=B7=20Ignore=20errors=20on=20Disco?= =?UTF-8?q?rd=20hook=20&=20e2e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit e2e are too flaky, discord hook might be unconfigured in a fork. --- .github/workflows/build.yml | 1 + .github/workflows/test_install.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a219563a..fbc3ed47c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,6 +96,7 @@ jobs: name: ๐Ÿงช E2E tests needs: build runs-on: ubuntu-latest + continue-on-error: true steps: - name: โฌ‡ Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 37e64bc49..76d7b2e23 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -31,12 +31,14 @@ jobs: run: | pip install . - name: ๐Ÿ“ง Discord success notification + continue-on-error: true env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} uses: Ilshidur/action-discord@master with: args: "โ˜‘๏ธ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` was successful" - name: ๐Ÿ“ง Discord failure notification + continue-on-error: true if: failure() env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} @@ -65,12 +67,14 @@ jobs: run: | pip install https://github.com/OctoPrint/OctoPrint/archive/${{ steps.latest.outputs.release }}.zip - name: ๐Ÿ“ง Discord success notification + continue-on-error: true env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} uses: Ilshidur/action-discord@master with: args: "โ˜‘๏ธ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ steps.latest.outputs.release }}` was successful" - name: ๐Ÿ“ง Discord failure notification + continue-on-error: true if: failure() env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} From 53b9b6185781c07e8c4744a6e28462e96448f249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 30 May 2022 14:51:54 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=91=B7=20Only=20trigger=20release=20j?= =?UTF-8?q?obs=20on=20main=20repo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fbc3ed47c..44d27367b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -142,7 +142,7 @@ jobs: publish-on-testpypi: name: ๐Ÿ“ฆ Publish on TestPyPI - if: github.event_name == 'release' + if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint' needs: - pre-commit - test-unit @@ -164,7 +164,7 @@ jobs: publish-on-pypi: name: ๐Ÿ“ฆ Publish tagged releases to PyPI - if: github.event_name == 'release' + if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint' needs: publish-on-testpypi runs-on: ubuntu-latest steps: @@ -180,7 +180,7 @@ jobs: notify-custopizer-build: name: ๐Ÿ“ง Notify OctoPi-UpToDate - if: github.event_name == 'release' + if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint' needs: publish-on-pypi runs-on: ubuntu-latest steps: