Skip to content

Commit

Permalink
Add pull request event types to workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
mnixry committed Feb 27, 2024
1 parent 90e718c commit dc3a47e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: CI
on:
push:
pull_request_target:
types: [opened, synchronize, reopened]
workflow_dispatch:

env:
Expand All @@ -13,6 +14,8 @@ jobs:
build:
runs-on: ubuntu-latest

if: github.event_name != 'push' || !startsWith(github.ref, 'refs/pull/')

permissions:
id-token: write

Expand Down Expand Up @@ -69,7 +72,8 @@ jobs:
runs-on: ubuntu-latest
needs: build

if: github.event_name != 'push' || !startsWith(github.event.pull_request.head.ref, 'ref/pull/')
permissions:
pull-requests: write

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit dc3a47e

Please sign in to comment.