Refactor file path in actions-validate.yml and handle empty changed files
This commit is contained in:
@@ -10,7 +10,11 @@ runs:
|
||||
run: |
|
||||
# Get the list of changed files
|
||||
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
|
||||
if [ -z "$CHANGED_FILES" ]; then
|
||||
echo "No files changed in this pull request"
|
||||
else
|
||||
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
|
||||
fi
|
||||
|
||||
- name: Setup Sectool
|
||||
uses: a13labs/setup-sectool@v1
|
||||
|
||||
Reference in New Issue
Block a user