mirror of
https://github.com/gradle/actions.git
synced 2025-04-16 15:59:18 +08:00
Instead of requiring that developers keep the 'dist' directory up-to-date, this process is now automated via a workflow. Whenever a commit is pushed to 'main' (or a 'release/**' branch), the workflow will build the application and commit any changes to the 'dist' directory.
27 lines
528 B
YAML
27 lines
528 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**
|
|
pull_request:
|
|
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
|