diff --git a/.github/workflows/generate_snap_stable_config.yml b/.github/workflows/generate_snap_stable_config.yml index 69d1c699aeb..d138eeeb9d4 100644 --- a/.github/workflows/generate_snap_stable_config.yml +++ b/.github/workflows/generate_snap_stable_config.yml @@ -199,7 +199,7 @@ jobs: permissions: contents: read runs-on: ubuntu-latest - if: (github.event_name == 'release') || (github.event_name == 'workflow_dispatch') + if: (github.event_name == 'release' && github.event.action == 'published' && !github.event.release.prerelease) || (github.event_name == 'workflow_dispatch') steps: - name: Checkout snap-stable-build@master uses: actions/checkout@v4