Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
senekor committed Nov 25, 2023
1 parent df8e297 commit c37cf9b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/no-important-files-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ jobs:
env:
TARGET_BRANCH: ${{ github.base_ref }}
run: |
for changed_file in $(git diff --name-only $TARGET_BRANCH); do
set -x
git diff --name-only $TARGET_BRANCH || true
git diff --name-only origin/$TARGET_BRANCH || true
git fetch --depth 1 origin $TARGET_BRANCH
echo "---"
git diff --name-only $TARGET_BRANCH || true
git diff --name-only origin/$TARGET_BRANCH || true
echo "---"
for changed_file in $(git diff --name-only origin/$TARGET_BRANCH); do
if ! echo "$changed_file" | grep --quiet --extended-regexp 'exercises/(practice|concept)' ; then
continue
fi
Expand Down Expand Up @@ -62,3 +70,7 @@ jobs:
repo: context.repo.repo,
body: body
})
- name: Sanity check
if: steps.check.outputs.important_files_changed == 'false'
run: echo "No important files changed"

0 comments on commit c37cf9b

Please sign in to comment.