mirror of
https://github.com/gradle/actions.git
synced 2025-08-24 19:01:27 +08:00
24 lines
493 B
YAML
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
|