Skip to content

Commit

Permalink
Narrow scope of build action
Browse files Browse the repository at this point in the history
Reduce the scope of the build action on pull requests from all pull requests to just merged pull requests.
  • Loading branch information
ionthegeek committed Apr 21, 2023
1 parent 69b6e46 commit aa7a9c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ on:
push:
branches: [ "master" ]
pull_request:
types: [ closed ]
branches: [ "master" ]

jobs:

build:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit aa7a9c1

Please sign in to comment.