vscode-github-actions icon indicating copy to clipboard operation
vscode-github-actions copied to clipboard

Skip release and publish workflow in forks

Open muzimuzhi opened this issue 1 year ago • 0 comments

This PR makes the .github/workflows/publish.yml workflow being skipped in forks.

Currently when conditions meet, that workflow would create a new release and publish the extension, both in the root repository and in its forks.

Since the publishing jobs need secretes, in most cases they will fail in forks and makes some noice to owners of forks.

Example runs of publish.yml workflow

  • Before, failed https://github.com/muzimuzhi/vscode-github-actions/actions/runs/10319890306
  • After, skipped https://github.com/muzimuzhi/vscode-github-actions/actions/runs/10368765663

muzimuzhi avatar Aug 13 '24 11:08 muzimuzhi