generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 35
34 lines (33 loc) · 988 Bytes
/
local-testing.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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