Skip to content

Commit

Permalink
Debug new workflow to check files
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Nov 16, 2024
1 parent 093fdf4 commit 1778f95
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check_diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ jobs:
with:
fetch-depth: 0
- name: Get changed files
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
HEAD_REF: ${{ github.event.pull_request.head.ref }}
run: |
git diff --name-only --diff-filter=ACMRTUXB ${GITHUB_BASE_REF}..${GITHUB_HEAD_REF} > check_diff.txt
git diff --name-only --diff-filter=ACMRTUXB ${BASE_REF}..${HEAD_REF} > check_diff.txt
- name: Check changed files
run: |
if grep -v -E "^(docs|\.github)/" check_diff.txt; then
Expand All @@ -26,4 +29,4 @@ jobs:
echo "skip=true" >> ${GITHUB_OUTPUT}
fi
outputs:
skip: ${{ steps.check.outputs.skip_workflows }}
skip: ${{ steps.check.outputs.skip }}

0 comments on commit 1778f95

Please sign in to comment.