From 59b3d7da2a4bc3645117b33f93e06f8be3f15d84 Mon Sep 17 00:00:00 2001 From: Yu-Hang 'Maxin' Tang Date: Wed, 6 Sep 2023 02:23:19 +0100 Subject: [PATCH] set job output --- .github/workflows/_sandbox.yaml | 4 ++-- .../workflows/{_publish_badge_v2.yaml => _upload_badge.yaml} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename .github/workflows/{_publish_badge_v2.yaml => _upload_badge.yaml} (97%) diff --git a/.github/workflows/_sandbox.yaml b/.github/workflows/_sandbox.yaml index 1caa5b7d5..4ef8c4b8a 100644 --- a/.github/workflows/_sandbox.yaml +++ b/.github/workflows/_sandbox.yaml @@ -33,8 +33,8 @@ jobs: cat "$f" | jq -r '.summary' | tee -a $GITHUB_STEP_SUMMARY done - publish-badge: + upload-badge: needs: [run-jobs] - uses: ./.github/workflows/_publish_badge_v2.yaml + uses: ./.github/workflows/_upload_badge.yaml if: always() secrets: inherit diff --git a/.github/workflows/_publish_badge_v2.yaml b/.github/workflows/_upload_badge.yaml similarity index 97% rename from .github/workflows/_publish_badge_v2.yaml rename to .github/workflows/_upload_badge.yaml index 5bff54b70..4638c8ad2 100644 --- a/.github/workflows/_publish_badge_v2.yaml +++ b/.github/workflows/_upload_badge.yaml @@ -11,10 +11,10 @@ on: outputs: GIST_ID: description: 'Id of the GitHub Gist that hosts all endpoint JSON files' - value: ${{ jobs.publish.outputs.GIST_ID }} + value: ${{ jobs.gist.outputs.GIST_ID }} jobs: - upload: + gist: runs-on: ubuntu-22.04 outputs: GIST_ID: ${{ steps.upload.outputs.result }}