Skip to content

Commit ca3d3cc

Browse files
committed
prevent regular PRs pushing to snap store
1 parent 2fdc2b3 commit ca3d3cc

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -261,21 +261,12 @@ jobs:
261261
asset_name: JupyterLab-Setup.snap
262262
tag: v${{ steps.package-info.outputs.version}}
263263
overwrite: true
264-
265-
- name: Publish snap to the latest/edge channel in Snap Store
266-
if: matrix.cfg.platform == 'linux-64' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
264+
265+
- name: Publish snap to the latest/candidate channel in Snap Store
266+
if: matrix.cfg.platform == 'linux-64' && steps.release-exists.outputs.result == 'true'
267267
uses: snapcore/action-publish@v1
268268
env:
269269
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
270270
with:
271271
snap: dist/JupyterLab.snap
272-
release: edge
273-
274-
# - name: Publish snap to the latest/candidate channel in Snap Store
275-
# if: matrix.cfg.platform == 'linux-64' && steps.release-exists.outputs.result == 'true'
276-
# uses: snapcore/action-publish@v1
277-
# env:
278-
# SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
279-
# with:
280-
# snap: dist/JupyterLab.snap
281-
# release: candidate
272+
release: candidate

0 commit comments

Comments
 (0)