Skip to content

Commit 7df3f0a

Browse files
authored
fix(ci): fix actionlint warnings (#348)
1 parent 22a020a commit 7df3f0a

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
SBOM_PATH=$(find dist/ -type f -name "*-sbom.json")
112112
HTML_DOCS_PATH=$(find dist/ -type f -name "*-docs-html.zip")
113113
BUILD_EPOCH_PATH=$(find dist/ -type f -name "*-build-epoch.txt")
114-
DIGEST=$(sha256sum $TARBALL_PATH $WHEEL_PATH $REQUIREMENTS_PATH $SBOM_PATH $HTML_DOCS_PATH $BUILD_EPOCH_PATH | base64 -w0)
114+
DIGEST=$(sha256sum "$TARBALL_PATH" "$WHEEL_PATH" "$REQUIREMENTS_PATH" "$SBOM_PATH" "$HTML_DOCS_PATH" "$BUILD_EPOCH_PATH" | base64 -w0)
115115
echo "Digest of artifacts is $DIGEST."
116116
echo "artifacts-sha256=$DIGEST" >> "$GITHUB_OUTPUT"
117117

.github/workflows/pr-conventional-commits.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ jobs:
4747
PR_TITLE: ${{ github.event.pull_request.title }}
4848
- name: Check PR commit messages
4949
run: |
50-
git remote add other $PR_HEAD_REPO_CLONE_URL
50+
git remote add other "$PR_HEAD_REPO_CLONE_URL"
5151
git fetch other
52-
cz check --rev-range origin/$PR_BASE_REF..other/$PR_HEAD_REF
52+
cz check --rev-range "origin/$PR_BASE_REF..other/$PR_HEAD_REF"
5353
env:
5454
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
5555
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
5757
- name: Set up user
5858
run: |
59-
git config --global user.name $USER_NAME
60-
git config --global user.email $USER_EMAIL
59+
git config --global user.name "$USER_NAME"
60+
git config --global user.email "$USER_EMAIL"
6161
git config --list --global # For debug purposes.
6262
6363
- name: Create changelog and bump
@@ -125,17 +125,17 @@ jobs:
125125
pip install 'commitizen ==2.32.1'
126126
127127
- name: Create Release Notes
128-
run: cz changelog --dry-run $(cz version --project) > RELEASE_NOTES.md
128+
run: cz changelog --dry-run "$(cz version --project)" > RELEASE_NOTES.md
129129

130130
# Create the release including the artifacts and the SLSA L3 provenance.
131131
- name: Upload assets
132132
id: upload-assets
133133
env:
134134
GH_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
135135
run: |
136-
TAG=`git describe --tags --abbrev=0`
137-
gh release create $TAG dist/* --title $TAG --notes-file RELEASE_NOTES.md
138-
echo "release-tag=$TAG" >> $GITHUB_OUTPUT
136+
TAG=$(git describe --tags --abbrev=0)
137+
gh release create "$TAG" dist/* --title "$TAG" --notes-file RELEASE_NOTES.md
138+
echo "release-tag=$TAG" >> "$GITHUB_OUTPUT"
139139
140140
# Uncomment the following steps to publish to a PyPI server.
141141
# At the moment PyPI does not provide a mechanism to publish

0 commit comments

Comments
 (0)