gradle/.github/workflows/ci-check-no-dist-update.yml
2024-04-10 11:09:42 -06:00

24 lines
493 B
YAML

name: CI-check-no-dist-update
# Prohibit any change to 'dist/**' on a non-release branch
on:
push:
branches-ignore:
- 'main'
- 'release/**'
paths:
- 'dist/**'
permissions:
contents: read
jobs:
fail-on-dist-update:
runs-on: ubuntu-latest
steps:
- run: |
echo "The 'dist' directory is auotmatically updated by the release process."
echo "It should not be updated manually in a non-release branch or a pull request."
exit 1