Skip to content

Commit

Permalink
Limit runs to feature additions
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Jun 18, 2021
1 parent c018d49 commit 5d50fff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/new-feature-checker.yml
@@ -1,11 +1,13 @@
name: New feature checker

on:
on:
pull_request:
types:
- opened
- edited
- synchronize # push
path:
- source/refined-github.ts

jobs:
check:
Expand All @@ -15,13 +17,13 @@ jobs:
if: startsWith(github.event.pull_request.title, 'Add') && endsWith(github.event.pull_request.title, 'feature')
steps:
- name: Find feature name
id: name
id: name
uses: AsasInnab/regex-action@v1
with:
regex_pattern: '(?<=Add `)\w+(?=` feature)'
regex_flags: g
search_string: ${{ github.event.pull_request.title }}

feature-file:
needs: check
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions webpack.config.ts
Expand Up @@ -9,8 +9,6 @@ import webpack, {Configuration} from 'webpack';

import {getFeatures, getFeaturesMeta} from './build/readme-parser';

let isWatching = false;

const config: Configuration = {
devtool: 'source-map',
stats: {
Expand Down

0 comments on commit 5d50fff

Please sign in to comment.