Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/create-board-checkout-with-token.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/create-board.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:



- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
submodules: recursive

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Git Checkout Submodules
run: |
Expand Down
Loading