mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-11-19 17:56:36 +01:00
test 1
This commit is contained in:
33
.github/workflows/check-diffs.yml
vendored
Normal file
33
.github/workflows/check-diffs.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Check `opensaas-sh` diffs are up to date
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-diffs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install deps
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y diffutils coreutils
|
||||||
|
|
||||||
|
- name: Generate diffs
|
||||||
|
run: |
|
||||||
|
./opensaas-sh/tools/patch.sh
|
||||||
|
./opensaas-sh/tools/diff.sh
|
||||||
|
|
||||||
|
- name: Check for uncommitted changes
|
||||||
|
run: |
|
||||||
|
if [[ -n $(git status --porcelain) ]]; then
|
||||||
|
echo "Error: There are uncommitted diff changes"
|
||||||
|
echo "Please run './opensaas-sh/tools/patch.sh' and './opensaas-sh/tools/diff.sh' locally and commit the changes"
|
||||||
|
git status
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user