From d4c2f0493c042e8f48eeb5c8ebd0f0a908ef9e5b Mon Sep 17 00:00:00 2001 From: Mariano Reingart Date: Sun, 19 Mar 2023 20:44:22 -0300 Subject: [PATCH] Only run release on original repository, not forks This avoids errors with dependabot PR: ``` Run marvinpinto/action-automatic-releases@latest Initializing the Automatic Releases action Determining release tags Retrieving commit history Generating changelog Generating release tag Attempting to create or update release tag "beta" Could not create new tag "refs/tags/beta" (Resource not accessible by integration) therefore updating existing tag "tags/beta" Error: Resource not accessible by integration ``` --- .github/workflows/windows-installer.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/windows-installer.yml b/.github/workflows/windows-installer.yml index b16b5dcb1..fb15ab1c0 100644 --- a/.github/workflows/windows-installer.yml +++ b/.github/workflows/windows-installer.yml @@ -156,6 +156,7 @@ jobs: run: | cat dist-64/.env >> $GITHUB_ENV - uses: "marvinpinto/action-automatic-releases@latest" + if: github.event.pull_request.head.repo.full_name == github.repository with: repo_token: "${{ secrets.GITHUB_TOKEN }}" automatic_release_tag: ${{ (github.ref_name != 'main') && 'beta' || 'latest' }}