ci: preflight checks on main
This commit is contained in:
parent
bf7431f747
commit
c541877cf7
1 changed files with 10 additions and 0 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -24,6 +24,11 @@ jobs:
|
|||
- name: Change check (frontend)
|
||||
id: fe-changes
|
||||
run: |
|
||||
if [ "${{ github.ref }}" == "refs/heads/main" ]
|
||||
then
|
||||
echo "fe_changed=true" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
git diff --name-only origin/main origin/${GITHUB_HEAD_REF} -- ./frontend
|
||||
if [ -n "$(git diff --name-only origin/main origin/${GITHUB_HEAD_REF} -- ./frontend)" ]
|
||||
then
|
||||
|
@ -32,6 +37,11 @@ jobs:
|
|||
- name: Change check (backend)
|
||||
id: be-changes
|
||||
run: |
|
||||
if [ "${{ github.ref }}" == "refs/heads/main" ]
|
||||
then
|
||||
echo "be_changed=true" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
git diff --name-only origin/main origin/${GITHUB_HEAD_REF} -- ./backend
|
||||
if [ -n "$(git diff --name-only origin/main origin/${GITHUB_HEAD_REF} -- ./backend)" ]
|
||||
then
|
||||
|
|
Reference in a new issue