chore: fix pre-release (#9199)

This PR enables `pre-release` only for the release PRs.
This commit is contained in:
jrandolf 2022-11-02 11:44:26 +01:00 committed by GitHub
parent a9bde8e726
commit e2aaa553fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ on:
jobs: jobs:
pre-release: pre-release:
if: "startsWith(github.event.head_commit.message, 'chore: release main')" if: "github.event_name == 'pull_request' && startsWith(github.event.head_commit.message, 'chore: release main')"
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write