mirror of
https://github.com/gradle/actions.git
synced 2025-08-18 23:01:27 +08:00
List changed files when failing due to dist directory change
Hopefully this will help track down spurious failures.
This commit is contained in:
parent
0be451eca3
commit
b2fd266e89
22
.github/workflows/ci-check-no-dist-update.yml
vendored
22
.github/workflows/ci-check-no-dist-update.yml
vendored
@ -2,6 +2,7 @@ name: CI-check-no-dist-update
|
|||||||
|
|
||||||
# Prohibit any change to 'dist/**' on a non-release branch
|
# Prohibit any change to 'dist/**' on a non-release branch
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
- 'main'
|
- 'main'
|
||||||
@ -15,8 +16,27 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
fail-on-dist-update:
|
fail-on-dist-update:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout sources
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Get changed files
|
||||||
|
id: changed-files
|
||||||
|
uses: tj-actions/changed-files@v44
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
dist/**
|
||||||
|
|
||||||
|
- name: Print changes to dist directory
|
||||||
|
env:
|
||||||
|
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
|
run: |
|
||||||
|
for file in ${ALL_CHANGED_FILES}; do
|
||||||
|
echo "$file was changed"
|
||||||
|
done
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
echo "The 'dist' directory is auotmatically updated by the release process."
|
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."
|
echo "It should not be updated manually in a non-release branch or a pull request."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user