From eac93d81dd6ba9030c2120efcce12da22fe084c2 Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 22 Jan 2024 23:26:50 -0300 Subject: [PATCH] test --- .github/workflows/skip-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/skip-ci.yml b/.github/workflows/skip-ci.yml index b07362324..e889eb647 100644 --- a/.github/workflows/skip-ci.yml +++ b/.github/workflows/skip-ci.yml @@ -6,11 +6,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Check diff from + uses: actions/checkout@v2 + with: + fetch-depth: 0 run: | skipList=(".github/codeowners") # Ignores changelog.md, readme.md,... - fileChangesArray=($(git diff --name-only origin/${{ github.base_ref }}..origin/${{ github.head_ref }} | grep -v '\.md$')) - echo git diff --name-only HEAD~ HEAD + fileChangesArray=($(git diff --name-only origin/${{ github.base_ref }}..${{ github.head_ref }} | grep -v '\.md$')) + echo ${fileChangesArray} for item in "${fileChangesArray[@]}" do if [[ ! " ${my_array[@]} " =~ " ${item} " ]]; then