Skip to content

Commit

Permalink
GitHubActions: don't restrict CI to master branch
Browse files Browse the repository at this point in the history
There's no point about restricting CI to master branch; doing this
will prevent contributors to know the CI status (e.g. the result
from running unit tests after their proposed contributions) before
they propose a PullRequest; because normally people create branches
when they want to start to work on something (instead of having to
use the master branch of their fork).
  • Loading branch information
knocte committed Oct 7, 2022
1 parent 602dea5 commit ef845cf
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
on: [push, pull_request, workflow_dispatch]

env:
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
Expand Down

0 comments on commit ef845cf

Please sign in to comment.