Skip to content

🚧 #140

🚧 #140 #33

Workflow file for this run

name: "Workflow for local testing (dev)"
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: Checkout
uses: actions/checkout@v4
- name: Dev check PR
uses: ./
id: dev_check_pr
with:
github-token: ${{github.token}}
bodyContains: "[x]"
bodyDoesNotContain: "your|own"
allowEmpty: false
- 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 > 6 }}
env:
NUMBER_OF_FILES : ${{ steps.dev_check_pr.outputs.numberOfFiles }}
run: |
echo "::error::Too many files, there are $NUMBER_OF_FILES"
exit 1