workflows: avoid running changeset feedback on bot PRs altogether

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-03-23 23:55:21 +01:00
parent e704667f01
commit 8943792a3f
@@ -17,7 +17,8 @@ permissions:
jobs:
feedback:
if: github.repository == 'backstage/backstage' # prevent running on forks
# prevent running towards forks and version packages
if: github.repository == 'backstage/backstage' && github.event.pull_request.user.login != 'backstage-service'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -38,7 +39,6 @@ jobs:
- name: Post Feedback
uses: actions/github-script@v5
if: github.event.pull_request.user.login != 'backstage-service'
env:
ISSUE_NUMBER: ${{ github.event.pull_request.number }}
with: