Prevent release-based Github Actions from running on forks (#340) #480
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release setup | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
release-setup: | |
if: github.repository == 'mortbopet/Ripes' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
if: github.ref == 'refs/heads/master' | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "continuous" | |
prerelease: true | |
title: "Continuous release" |