Skip to content

archive validation

archive validation #10

name: Git Archive Content Check
on:
pull_request:
branches:
- master
paths:
- .github/workflows/archive-validation.yml
- .ci/github/arhcive_allow.txt
- ./*
push:
branches:
- master
paths:
- .github/workflows/archive-validation.yml
- .ci/github/arhcive_allow.txt
- ./*
jobs:
archive-validation:
name: Git Archive Content Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: number-of-changed-files
run: |
echo "no_of_changed_files_in_root=$(for file in $(bash .ci/github/files_between_commits.sh $GITHUB_REF $GITHUB_SHA)
do
dirname $file;
done | sort | uniq | grep '^\.$' | wc -l)" >> $GITHUB_OUTPUT
- run: |
git archive -o archive.tar $GITHUB_SHA && sh .ci/github/validate_archive.sh archive.tar
if: ${{ steps.number-of-changed-files.outputs.no_of_changed_files_in_root -eq 0 }}

Check failure on line 37 in .github/workflows/archive-validation.yml

View workflow run for this annotation

GitHub Actions / Git Archive Content Check

Invalid workflow file

The workflow is not valid. .github/workflows/archive-validation.yml (Line: 37, Col: 13): Unexpected symbol: '-eq'. Located at position 67 within expression: steps.number-of-changed-files.outputs.no_of_changed_files_in_root -eq 0