Skip to content

Commit a83fcc6

Browse files
committed
ci: fix actionlint findings
1 parent 57d6e5e commit a83fcc6

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/actionlint.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
self-hosted-runner:
2+
labels:
3+
- gh-ubuntu-arm64

.github/workflows/publish_docker_images.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,15 @@ jobs:
7878
EVENT_NAME: ${{ github.event_name }}
7979
REF_TYPE: ${{ github.ref_type }}
8080
run: |
81-
echo "QW_COMMIT_DATE=$(TZ=UTC0 git log -1 --format=%cd --date=format-local:%Y-%m-%dT%H:%M:%SZ)" >> $GITHUB_ENV
82-
echo "QW_COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
83-
echo "QW_COMMIT_TAGS=$(git tag --points-at HEAD | tr '\n' ',')" >> $GITHUB_ENV
81+
{
82+
echo "QW_COMMIT_DATE=$(TZ=UTC0 git log -1 --format=%cd --date=format-local:%Y-%m-%dT%H:%M:%SZ)"
83+
echo "QW_COMMIT_HASH=$(git rev-parse HEAD)"
84+
echo "QW_COMMIT_TAGS=$(git tag --points-at HEAD | tr '\n' ',')"
85+
} >> "$GITHUB_ENV"
8486
if [[ "$EVENT_NAME" == "push" && "$REF_TYPE" == "tag" && "${GITHUB_REF#refs/tags/}" == *"jemprof"* ]]; then
85-
echo "CARGO_FEATURES=release-jemalloc-profiled" >> $GITHUB_ENV
87+
echo "CARGO_FEATURES=release-jemalloc-profiled" >> "$GITHUB_ENV"
8688
else
87-
echo "CARGO_FEATURES=release-feature-set" >> $GITHUB_ENV
89+
echo "CARGO_FEATURES=release-feature-set" >> "$GITHUB_ENV"
8890
fi
8991
9092
- name: Build and push image
@@ -156,10 +158,11 @@ jobs:
156158
- name: Create manifest list and push tags
157159
working-directory: /tmp/digests
158160
run: |
161+
# shellcheck disable=SC2046
159162
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
160163
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
161164
- name: Inspect image
162165
run: |
163-
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${STEPS_META_OUTPUTS_VERSION}
166+
docker buildx imagetools inspect "${{ env.REGISTRY_IMAGE }}:${STEPS_META_OUTPUTS_VERSION}"
164167
env:
165168
STEPS_META_OUTPUTS_VERSION: ${{ steps.meta.outputs.version }}

.github/workflows/publish_release_packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323
- name: Extract asset version
24-
run: echo "ASSET_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
24+
run: echo "ASSET_VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_ENV"
2525
- uses: ./.github/actions/cargo-build-macos-binary
2626
with:
2727
target: ${{ matrix.target }}
@@ -39,7 +39,7 @@ jobs:
3939
steps:
4040
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4141
- name: Extract asset version
42-
run: echo "ASSET_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
42+
run: echo "ASSET_VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_ENV"
4343
- uses: ./.github/actions/cross-build-binary
4444
with:
4545
target: ${{ matrix.target }}

0 commit comments

Comments
 (0)