Skip to content

Feat/114

Feat/114 #20

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.numberOfFiles }}
run: |
echo "::warning::We got files: $NUMBER_OF_FILES"
- name: Fail if too big
if: ${{ steps.dev_check_pr.outputs.numberOfFiles > 3 }}
env:
NUMBER_OF_FILES : ${{ steps.dev_check_pr.outputs.numberOfFiles }}
run: |
echo "::error::Too many files, there are $NUMBER_OF_FILES"
exit 1