diff --git a/.github/workflows/create-board-checkout-with-token.yaml b/.github/workflows/create-board-checkout-with-token.yaml index 8da7229..29a1caf 100644 --- a/.github/workflows/create-board-checkout-with-token.yaml +++ b/.github/workflows/create-board-checkout-with-token.yaml @@ -23,7 +23,7 @@ jobs: echo "TOKEN=${{ secrets.MY_REPO_PAT }}" >> "$GITHUB_ENV" fi - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: token: ${{ env.TOKEN }} submodules: recursive diff --git a/.github/workflows/create-board.yaml b/.github/workflows/create-board.yaml index 8289115..006ca12 100644 --- a/.github/workflows/create-board.yaml +++ b/.github/workflows/create-board.yaml @@ -24,7 +24,7 @@ jobs: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: submodules: recursive @@ -57,7 +57,10 @@ jobs: env: ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' run: | + git diff --color=always git diff --name-only | while read f; do + # Filter out changes that only include "Created", "Generation", or "Date" (case-insensitive) in the added lines (indicated by green color in diff) + # fun fact: rusEFI repo has 'smart-git-add.sh' which does similar thing by counting lines in diff if [ $(git diff --color=always|perl -wlne 'print $1 if /^\e\[32m\+\e\[m\e\[32m(.*)\e\[m$/' "$f" | grep -vE "Created|Generation|[dD]ate" | wc -l) -eq 0 ]; then echo Only unimportant changes here? NOT SURE not invoking git checkout "$f" fi @@ -97,6 +100,7 @@ jobs: ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' run: | git diff --name-only | while read f; do + # Filter out changes that only include "Created", "Generation", or "Date" (case-insensitive) in the added lines (indicated by green color in diff) if [ $(git diff --color=always|perl -wlne 'print $1 if /^\e\[32m\+\e\[m\e\[32m(.*)\e\[m$/' "$f" | grep -vE "Created|Generation|[dD]ate" | wc -l) -eq 0 ]; then echo Only unimportant changes here? NOT SURE not invoking git checkout "$f" fi diff --git a/.github/workflows/custom-board-update-hellen-one-reference.yaml b/.github/workflows/custom-board-update-hellen-one-reference.yaml index f82634e..d7f2079 100644 --- a/.github/workflows/custom-board-update-hellen-one-reference.yaml +++ b/.github/workflows/custom-board-update-hellen-one-reference.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Git Checkout Submodules run: |