Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 16f8265

Browse files
committed
Test
1 parent 33828e4 commit 16f8265

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/checksize.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ jobs:
1212
- name: Build Docker image
1313
run: docker build . --file Dockerfile.dummy --build-arg NF_IMAGE_VERSION=$GITHUB_SHA -t netlify/build:$GITHUB_SHA
1414
- name: Check image size
15-
run: echo "::set-output name=size::$(docker image inspect netlify/build:$GITHUB_SHA --format='{{.Size}}')"
16-
id: size
17-
- uses: LouisBrunner/checks-action@v1.1.1
18-
if: always()
19-
with:
20-
token: ${{ secrets.GITHUB_TOKEN }}
21-
name: Test XYZ
22-
conclusion: neutral
23-
output: |
24-
{"title":"Size is ${{ steps.size.outputs.size }}", "summary": "ok"}
15+
run: |
16+
SIZE=$(docker image inspect netlify/build:$GITHUB_SHA --format='{{.Size}}')
17+
curl -d '{"name":"Image size", "head_sha":"${{ github.sha }}", "conclusion":"neutral", "output":{"title":"$SIZE", "summary":"foo"}}' \
18+
-H 'Content-Type: application/json' \
19+
-H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' \
20+
-X POST https://api.github.com/repos/${{ github.repository }}/check-runs
21+
# - uses: LouisBrunner/checks-action@v1.1.1
22+
# if: always()
23+
# with:
24+
# token: ${{ secrets.GITHUB_TOKEN }}
25+
# name: Test XYZ
26+
# conclusion: neutral
27+
# output: |
28+
# {"title":"Size is ${{ steps.size.outputs.size }}", "summary": "ok"}

0 commit comments

Comments
 (0)