Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Nov 18, 2024
1 parent cb4037a commit 67192e5
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/check_diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ jobs:
check_diff:
name: Check files changed
runs-on: ubuntu-20.04
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
HEAD_REF: ${{ github.event.pull_request.head.ref }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Define base and head refs
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
HEAD_REF: ${{ github.event.pull_request.head.ref }}
run: |
echo "Base ref: ${BASE_REF}"
echo "Head ref: ${HEAD_REF}"
- name: Add forked repository as remote
run: |
git remote add fork ${{ github.event.pull_request.head.repo.clone_url }}
Expand All @@ -33,17 +29,17 @@ jobs:
run: |
git fetch fork ${HEAD_REF}
- name: Get files changed
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 origin/${BASE_REF}..fork/${HEAD_REF} > check_diff.txt
- name: Check files changed
run: |
if grep -v -E "^(docs|\.github)/|\.azure-pipelines\.yml$" check_diff.txt; then
if grep -v -E "^(Docs|\.github)/|\.azure-pipelines\.yml$" check_diff.txt; then
echo "skip=false"
echo "skip=false" >> ${GITHUB_OUTPUT}
else
echo "skip=true"
echo "skip=true" >> ${GITHUB_OUTPUT}
fi
echo "GITHUB_OUTPUT = ${GITHUB_OUTPUT}"
outputs:
skip: ${{ steps.check.outputs.skip }}

0 comments on commit 67192e5

Please sign in to comment.