Skip to content

Feat/v14

Feat/v14 #13

Workflow file for this run

name: "Workflow for local testing"
on:
pull_request:
branches:
- dev
types: [opened, edited, ready_for_review, synchronize]
jobs:
dev_check_pr:
name: "Checks dev version"
runs-on: ubuntu-latest
steps:
- name: Dev check PR
uses: JJ/github-pr-contains-action@dev
id: dev_check_pr
with:
github-token: ${{github.token}}
bodyContains: "[x]"
bodyDoesNotContain: "your|own"
- name: Info PR
env:
NUMBER_OF_FILES : ${{ steps.dev_check_pr.outputs.filesChanged }}
DIFF : ${{ steps.dev_check_pr.outputs.diff }}
run: |
echo "::warning::We got files: $NUMBER_OF_FILES"
echo "::warning::We got diff: $( echo -n $DIFF | wc -l ) lines in diff"
- name: Fail if too big
if: ${{ steps.dev_check_pr.outputs.filesChanged > 3 }}
run: |
echo "::error::Too many files, there are $NUMBER_OF_FILES"
exit 1