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 5fb34c3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 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,17 @@ jobs:
env:
TARGET_BRANCH: ${{ github.base_ref }}
run: |
for changed_file in $(git diff --name-only $TARGET_BRANCH); do
set -x
git log --oneline --graph --all -n10
git diff --name-only $TARGET_BRANCH || true
git diff --name-only origin/$TARGET_BRANCH || true
git fetch --depth 1 origin $TARGET_BRANCH
git log --oneline --graph --all -n10
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 +72,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 5fb34c3

Please sign in to comment.