mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-30 03:53:45 -04:00
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 47.0.5 to 47.0.6.
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](22103cc46b...9426d40962)
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-version: 47.0.6
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
# Check if the path of changed file is longer than 260 characters
|
|
# that windows filesystem allows
|
|
|
|
name: Detect long path among changed files
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request: # focus on the changed files in current PR
|
|
branches: [main]
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
long-path:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
persist-credentials: false
|
|
- name: Check for changed files
|
|
id: changed-files
|
|
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
|
|
- name: Detect long path
|
|
env:
|
|
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} # ignore the deleted files
|
|
MAX_LENGTH: 120 # set max length to 120, considering the base path of app project that uses matrix-sdk
|
|
run: |
|
|
for file in ${ALL_CHANGED_FILES}; do
|
|
if [ ${#file} -gt $MAX_LENGTH ]; then
|
|
echo "File path is too long. Length: ${#file}, Path: $file"
|
|
exit 1
|
|
fi
|
|
done
|
|
exit 0
|