Skip to content

Commit 444d51b

Browse files
committed
CI: Address actionlint/shellcheck and zizmor issues in create_release_draft.yml workflow
1 parent 404fc61 commit 444d51b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/create_release_draft.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
python-version: '3.13'
4242
- name: Create output directory
4343
run: |
44-
mkdir ${{ env.OUT_DIR }}
44+
mkdir "${OUT_DIR}"
4545
- name: Generate ChangeLog file
4646
run: |
4747
python utils/gitlog2changelog.py
48-
mv ChangeLog ${{ env.OUT_DIR }}/ChangeLog
49-
gzip ${{ env.OUT_DIR }}/ChangeLog
48+
mv ChangeLog "${OUT_DIR}/ChangeLog"
49+
gzip "${OUT_DIR}/ChangeLog"
5050
- name: Generate Git derived data files
5151
run: |
5252
echo "Generate VERSION_GIT file:"
@@ -58,21 +58,21 @@ jobs:
5858
echo "Create core modules patch file:"
5959
git add core_modules_with_last_commit.json
6060
git diff --cached > \
61-
${{ env.OUT_DIR }}/core_modules_with_last_commit.patch
61+
"${OUT_DIR}/core_modules_with_last_commit.patch"
6262
- name: Create tarballs (for tags only)
6363
if: startsWith(github.ref, 'refs/tags/')
6464
run: |
6565
cd ..
66-
tar -cvf ${{ env.OUT_DIR }}/${{ env.GRASS }}.tar \
66+
tar -cvf "${OUT_DIR}/${GRASS}.tar" \
6767
--exclude=".gi*" --exclude=".tr*" \
68-
--transform s/grass/${{ env.GRASS }}/ grass
69-
cd ${{ env.OUT_DIR }}
70-
gzip -9k ${{ env.GRASS }}.tar
71-
md5sum ${{ env.GRASS }}.tar.gz > ${{ env.GRASS }}.tar.gz.md5
72-
sha256sum ${{ env.GRASS }}.tar.gz > ${{ env.GRASS }}.tar.gz.sha256
73-
xz -9e ${{ env.GRASS }}.tar
74-
md5sum ${{ env.GRASS }}.tar.xz > ${{ env.GRASS }}.tar.xz.md5
75-
sha256sum ${{ env.GRASS }}.tar.xz > ${{ env.GRASS }}.tar.xz.sha256
68+
--transform s/grass/"${GRASS}"/ grass
69+
cd "${OUT_DIR}" || exit
70+
gzip -9k "${GRASS}.tar"
71+
md5sum "${GRASS}.tar.gz" > "${GRASS}.tar.gz.md5"
72+
sha256sum "${GRASS}.tar.gz" > "${GRASS}.tar.gz.sha256"
73+
xz -9e "${GRASS}.tar"
74+
md5sum "${GRASS}.tar.xz" > "${GRASS}.tar.xz.md5"
75+
sha256sum "${GRASS}.tar.xz" > "${GRASS}.tar.xz.sha256"
7676
- name: Publish draft distribution to GitHub (for tags only)
7777
if: startsWith(github.ref, 'refs/tags/')
7878
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2

0 commit comments

Comments
 (0)