diff --git a/.github/workflows/Example.yml b/.github/workflows/Example.yml index 790a8af9..3d863ee8 100644 --- a/.github/workflows/Example.yml +++ b/.github/workflows/Example.yml @@ -62,7 +62,7 @@ jobs: run: julia --project=examples/ examples/jupyter-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: jupyter-example-${{ matrix.os }}-${{ matrix.file-name }}-${{ matrix.julia-version }}-${{ matrix.julia-arch }}-${{ matrix.experimental }}[${{ github.ref }}] @@ -107,7 +107,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: pluto-examples[${{ github.ref }}] @@ -140,7 +140,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