Skip to content

Commit

Permalink
Added CI workflow to fail when build.sh changes aren't committed
Browse files Browse the repository at this point in the history
  • Loading branch information
roxspring committed Mar 11, 2024
1 parent 34162e8 commit 8bb65ea
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
Build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- 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

0 comments on commit 8bb65ea

Please sign in to comment.