Skip to content

Commit 27454d7

Browse files
committed
ci: fix actionlint errors
Signed-off-by: Shinya Hayashi <shinya-hayashi@cybozu.co.jp>
1 parent 4106c23 commit 27454d7

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

.github/actionlint.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# You can see the self-hosted runners available for mantle.
2+
# https://github.com/cybozu-go/mantle/settings/actions/runners
3+
self-hosted-runner:
4+
labels:
5+
- mantle_large_runner_16core

.github/workflows/ceph-export-diff-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ jobs:
2222
- run: |
2323
VERSION=${GITHUB_REF#refs/tags/}
2424
zip -j packages.zip ceph/packages/*.deb ceph/packages/COPYING*
25-
gh release create ${VERSION} -t "Release ${VERSION}"
26-
gh release upload ${VERSION} packages.zip
25+
gh release create "${VERSION}" -t "Release ${VERSION}"
26+
gh release upload "${VERSION}" packages.zip

.github/workflows/release.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
- name: "Validate Release Version"
1515
id: check_version
1616
run: |
17-
VERSION=$(echo $GITHUB_REF | sed -ne 's/[^0-9]*\([0-9]\+\.[0-9]\+\.[0-9]\+\(-.*\)\?\).*/\1/p')
17+
VERSION=$(echo "$GITHUB_REF" | sed -ne 's/[^0-9]*\([0-9]\+\.[0-9]\+\.[0-9]\+\(-.*\)\?\).*/\1/p')
1818
if [ "$VERSION" = "" ]; then
1919
echo "Invalid version format. $GITHUB_REF"
2020
exit 1
2121
fi
22-
if [ $(echo $VERSION | grep "-") ]; then PRERELEASE=true; else PRERELEASE=false; fi
23-
echo "version=${VERSION}" >> $GITHUB_OUTPUT
24-
echo "prerelease=${PRERELEASE}" >> $GITHUB_OUTPUT
22+
if echo "$VERSION" | grep -q "-"; then PRERELEASE=true; else PRERELEASE=false; fi
23+
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
24+
echo "prerelease=${PRERELEASE}" >> "$GITHUB_OUTPUT"
2525
2626
- uses: actions/checkout@v7.0.0
2727
- uses: actions/setup-go@v6.4.0
@@ -36,8 +36,8 @@ jobs:
3636
if: ${{ steps.check_version.outputs.prerelease == 'false' }}
3737
run: |
3838
BRANCH=$(echo ${{ steps.check_version.outputs.version }} | cut -d "." -f 1-2)
39-
docker tag ghcr.io/cybozu-go/mantle:${{ steps.check_version.outputs.version }} ghcr.io/cybozu-go/mantle:${BRANCH}
40-
docker push ghcr.io/cybozu-go/mantle:${BRANCH}
39+
docker tag ghcr.io/cybozu-go/mantle:${{ steps.check_version.outputs.version }} "ghcr.io/cybozu-go/mantle:${BRANCH}"
40+
docker push "ghcr.io/cybozu-go/mantle:${BRANCH}"
4141
4242
- name: "Get previous tag"
4343
id: get_previous_tag
@@ -47,13 +47,13 @@ jobs:
4747
-H "Accept: application/vnd.github+json" \
4848
-H "X-GitHub-Api-Version: 2022-11-28" \
4949
/repos/${{ github.repository }}/git/matching-refs/tags/v)
50-
PREV_TAG=$(echo ${RESP} | jq -r '.[].ref' | awk -F "/" '{print $3}' | \
50+
PREV_TAG=$(echo "${RESP}" | jq -r '.[].ref' | awk -F "/" '{print $3}' | \
5151
grep -E "^v[0-9]+\.[0-9]+\.[0-9]+" | sort -V -r | tail -n +2 | head -n 1)
5252
if [ -z "${PREV_TAG}" ]; then
5353
echo "PREV_TAG is empty."
5454
exit 1
5555
fi
56-
echo "previous_tag=${PREV_TAG}" >> ${GITHUB_OUTPUT}
56+
echo "previous_tag=${PREV_TAG}" >> "${GITHUB_OUTPUT}"
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959
- name: "Create Release"

0 commit comments

Comments
 (0)