File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 9393 TAG_List=$(gh release list -R "$GITHUB_REPOSITORY" --json tagName | jq -r 'map(select(true))[] | (.tagName)')
9494 TAG="$(date +%Y%m%d)"
9595 for i in $TAG_List; do
96- if [ "$i" = "$TAG" ]; then
96+ if [[ "$i" = "$TAG" ] ]; then
9797 gh release delete "$TAG" -y
9898 fi
9999 done
Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ jobs:
369369 working-directory : ${{ matrix.config.working-directory || './' }}
370370 run : |
371371 # See: https://www.electron.build/code-signing
372- if [ $CAN_SIGN = false ] || [ $IS_WINDOWS_CONFIG = true ]; then
372+ if [[ $CAN_SIGN = false ]] || [[ $IS_WINDOWS_CONFIG = true ] ]; then
373373 echo "Skipping the app signing: certificate not provided."
374374 else
375375 export CSC_LINK="${{ runner.temp }}/signing_certificate.${{ matrix.config.certificate-extension }}"
@@ -544,11 +544,11 @@ jobs:
544544 run : |
545545 export LATEST_TAG=$(git describe --abbrev=0)
546546 export GIT_LOG=$(git log --pretty=" - %s [%h]" $LATEST_TAG..HEAD | sed 's/ *$//g')
547- if [ "$IS_RELEASE" = true ]; then
547+ if [[ "$IS_RELEASE" = true ] ]; then
548548 export BODY=$(echo -e "$GIT_LOG")
549549 else
550550 export LATEST_TAG_WITH_LINK=$(echo "[$LATEST_TAG](https://github.com/arduino/arduino-ide/releases/tag/$LATEST_TAG)")
551- if [ -z "$GIT_LOG" ]; then
551+ if [[ -z "$GIT_LOG" ] ]; then
552552 export BODY="There were no changes since version $LATEST_TAG_WITH_LINK."
553553 else
554554 export BODY=$(echo -e "Changes since version $LATEST_TAG_WITH_LINK:\n$GIT_LOG")
Original file line number Diff line number Diff line change 2828 BASE=$(git merge-base HEAD upstream/main)
2929 DIFF_FILES=$(git diff --name-only $BASE upstream/main | grep -Ev '^(\.github/|\.git/|^[^/]+$)' || true)
3030 echo "DIFF_FILES: $DIFF_FILES"
31- if [ -z "$DIFF_FILES" ]; then
31+ if [[ -z "$DIFF_FILES" ] ]; then
3232 echo "❌ Only ignored files changed. Exiting."
3333 echo "skip=true" >> $GITHUB_OUTPUT
3434 else
You can’t perform that action at this time.
0 commit comments