6262 last_tag="$(git describe --tags --abbrev=0 || echo "")"
6363 if [[ "${{ github.ref_type }}" == "tag" ]]; then
6464 echo "Overriding kibot_variant to 'RELEASED' for tag"
65- echo "kibot_variant=RELEASED" >> $ GITHUB_ENV
65+ echo "kibot_variant=RELEASED" >> "${ GITHUB_ENV}"
6666 else
67- echo "kibot_variant=${{ env.kibot_variant }}" >> $ GITHUB_ENV
67+ echo "kibot_variant=${{ env.kibot_variant }}" >> "${ GITHUB_ENV}"
6868 fi
6969
7070 - name : Download updated CHANGELOG
@@ -109,7 +109,7 @@ jobs:
109109 - name : Initialize
110110 run : |
111111 mkdir -p log
112- echo "DATE=$(date +'%Y-%m-%d %H:%M:%S')" >> $ GITHUB_ENV
112+ echo "DATE=$(date +'%Y-%m-%d %H:%M:%S')" >> "${ GITHUB_ENV}"
113113
114114 # Run these changelog update steps only on tag pushes
115115 - name : Pull latest changes for changelog update
@@ -125,7 +125,7 @@ jobs:
125125 shell : bash
126126 run : |
127127 git clone https://github.com/Kampi/KiCad.git kicad-library
128- echo "KICAD_LIBRARY=$(pwd)/kicad-library" >> "$GITHUB_ENV"
128+ echo "KICAD_LIBRARY=$(pwd)/kicad-library" >> "${ GITHUB_ENV} "
129129 pip install defusedxml --break-system-packages
130130
131131 - name : Extract release notes
@@ -163,10 +163,10 @@ jobs:
163163 if [[ "${{ github.ref_type }}" == "tag" ]]; then
164164 version_arg="-E REVISION='${last_tag}'"
165165 echo "Overriding kibot_variant to 'RELEASED' for tag"
166- echo "kibot_variant=RELEASED" >> $ GITHUB_ENV
166+ echo "kibot_variant=RELEASED" >> "${ GITHUB_ENV}"
167167 else
168168 version_arg="-E REVISION='${last_tag} + (Unreleased)'"
169- echo "kibot_variant=${{ env.kibot_variant }}" >> $ GITHUB_ENV
169+ echo "kibot_variant=${{ env.kibot_variant }}" >> "${ GITHUB_ENV}"
170170 fi
171171
172172 # Determine additional_args based on the variant
@@ -186,8 +186,8 @@ jobs:
186186 ;;
187187 esac
188188
189- echo "version_arg=${version_arg}" >> "$GITHUB_ENV"
190- echo "additional_args=${additional_args}" >> "$GITHUB_ENV"
189+ echo "version_arg=${version_arg}" >> "${ GITHUB_ENV} "
190+ echo "additional_args=${additional_args}" >> "${ GITHUB_ENV} "
191191
192192 # Generate notes (skipped for DRAFT variant)
193193 - name : Generate notes
@@ -285,4 +285,4 @@ jobs:
285285 uses : stefanzweifel/git-auto-commit-action@v5
286286 with :
287287 branch : ${{ github.ref_name }}
288- commit_message : Push outputs from CI/CD (${{ env.DATE }})
288+ commit_message : Push outputs from CI/CD (${{ github.event.head_commit.timestamp }})
0 commit comments