From fc06cf55d049d6acac04b0fcf8e1500c147fc847 Mon Sep 17 00:00:00 2001 From: Bottie McBotface Date: Thu, 9 Jan 2025 20:12:42 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20chore:=20try=20to=20show=20publi?= =?UTF-8?q?sh=20step=20as=20skipped=20if=20it=20was=20skipped=20(=3F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ad5781d..f9bc904 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,4 +16,17 @@ jobs: - uses: actions/checkout@v4 - name: Publish package - run: npx jsr publish + id: publish + run: | + OUTPUT=$(npx jsr publish 2>&1) + echo "$OUTPUT" + if echo "$OUTPUT" | grep -q "Skipping, already published"; then + echo "SKIPPED=true" >> $GITHUB_OUTPUT + else + echo "SKIPPED=false" >> $GITHUB_OUTPUT + fi + + - name: Check if skipped + if: steps.publish.outputs.SKIPPED == 'true' + run: exit 78 # old way to mark a job as skipped + \ No newline at end of file