Skip to content

Commit

Permalink
chore: Add WIP Action
Browse files Browse the repository at this point in the history
Closes: #2402
Signed-off-by: Michael Gasch <mgasch@vmware.com>
  • Loading branch information
Michael Gasch committed May 4, 2021
1 parent da4f74c commit 0f1c3f8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/govmomi-check-wip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@
# limitations under the License.

# Perform "exit 1" if PR title starts with "WIP" to block accidental merges
name: Check WIP
name: Check "WIP" in PR Title

on:
pull_request:
types: [ opened, synchronize, reopened, edited ]
types: [opened, synchronize, reopened, edited]

jobs:
WIP:
name: "Check WIP in PR title"
wip:
runs-on: ubuntu-latest
if: startsWith(github.event.pull_request.title, 'WIP')
steps:
- name: Must Exit
run: |
echo "::error ::PR marked as Work in Progress!"
exit 1
- name: Check WIP in PR Title
uses: embano1/wip@v1

0 comments on commit 0f1c3f8

Please sign in to comment.