From ae57464da7754ed9ae79376ac73419b5e0a7ca93 Mon Sep 17 00:00:00 2001 From: Simon Exner <43469235+0815Creeper@users.noreply.github.com> Date: Sun, 8 Sep 2024 20:12:07 +0200 Subject: [PATCH] fixes for example action --- .github/workflows/Example.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Example.yml b/.github/workflows/Example.yml index ac2153b7..1c9a88c4 100644 --- a/.github/workflows/Example.yml +++ b/.github/workflows/Example.yml @@ -52,7 +52,7 @@ jobs: run: julia --project=examples/ examples/src/${{ matrix.file-name }}.jl - name: "auto-commit (retry on merge)" - if: success() && github.event_name != 'pull_request' && github.branch == 'main' + if: success() && github.event_name != 'pull_request' && github.ref_name == 'main' uses: nick-fields/retry@v3 env: CI_COMMIT_MESSAGE: example-${{ matrix.os }}-${{ matrix.file-name }}-${{ matrix.julia-version }}-${{ matrix.julia-arch }}-${{ matrix.experimental }}[${{ github.ref }}] @@ -97,7 +97,7 @@ jobs: - run: julia -e 'using PlutoSliderServer; PlutoSliderServer.export_directory("examples/pluto-src")' - name: "auto-commit (retry on merge)" - if: success() && github.event_name != 'pull_request' && github.branch == 'main' + if: success() && github.event_name != 'pull_request' && github.ref_name == 'main' uses: nick-fields/retry@v3 env: CI_COMMIT_MESSAGE: examples-pluto[${{ github.ref }}] @@ -130,7 +130,7 @@ jobs: call-docu: needs: [jupyter, pluto] - if: github.event_name != 'pull_request' && github.branch == 'main' + if: github.event_name != 'pull_request' && github.ref_name == 'main' runs-on: ubuntu-latest steps: # Trigger an repoisitory dispath event