generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (27 loc) · 750 Bytes
/
Build.yml
File metadata and controls
33 lines (27 loc) · 750 Bytes
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
name: Build
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check - Description Length
uses: mikefarah/yq@master
with:
cmd: yq eval --exit-status '.description | length < 125' action.yml
- name: Build
run: |
# Rebuild per-JDK actions based on the base content
./build.sh
# Fail CI if rebuilding left uncommitted changes
if [ "$(git status --porcelain | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git status
exit 1
fi