From b0ed8dd6b9bd8ddfa372eb61c154515f4edd9459 Mon Sep 17 00:00:00 2001 From: Ozzie Vasdi <29984068+ovasdi@users.noreply.github.com> Date: Mon, 22 May 2023 11:37:58 -0400 Subject: [PATCH] Revert 138 revert 136 ovasdi/platform 5157/remove set output (#141) * Revert "Revert "chore: remove set-ouptut GHA workflow commands"" This reverts commit 5c13a317aa7e165b23c2c13362b0e7b0a18ff92b. * fix: typo in environment variable * refactor: wrap GITHUB_OUTPUT env var in double quotes --- .github/workflows/facilitate-incident-review.yml | 2 +- .github/workflows/next-on-call.yml | 6 +++--- .github/workflows/open-rfcs.yml | 4 ++-- .github/workflows/recently-published.yml | 6 +++--- .github/workflows/standup-reminder.yml | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/facilitate-incident-review.yml b/.github/workflows/facilitate-incident-review.yml index 68cccc2..e23e715 100644 --- a/.github/workflows/facilitate-incident-review.yml +++ b/.github/workflows/facilitate-incident-review.yml @@ -21,7 +21,7 @@ jobs: - name: Run CLI id: cli - run: echo "PAYLOAD=$(artsy scheduled:facilitate-incident-review --useDatesVar)" >> $GITHUB_OUTPUT + run: echo "PAYLOAD=$(artsy scheduled:facilitate-incident-review --useDatesVar)" >> "$GITHUB_OUTPUT" env: OPSGENIE_API_KEY: ${{ secrets.OPSGENIE_API_KEY }} SLACK_WEB_API_TOKEN: ${{ secrets.SLACK_WEB_API_TOKEN }} diff --git a/.github/workflows/next-on-call.yml b/.github/workflows/next-on-call.yml index 6b02afd..bb4a848 100644 --- a/.github/workflows/next-on-call.yml +++ b/.github/workflows/next-on-call.yml @@ -21,7 +21,7 @@ jobs: - name: Run CLI id: cli - run: echo "::set-output name=payload::$(artsy scheduled:next-on-call)" + run: echo "PAYLOAD=$(artsy scheduled:next-on-call)" >> "$GITHUB_OUTPUT" env: OPSGENIE_API_KEY: ${{ secrets.OPSGENIE_API_KEY }} SLACK_WEB_API_TOKEN: ${{ secrets.SLACK_WEB_API_TOKEN }} @@ -30,6 +30,6 @@ jobs: uses: 8398a7/action-slack@v3 with: status: custom - custom_payload: ${{steps.cli.outputs.payload}} + custom_payload: ${{steps.cli.outputs.PAYLOAD}} env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/open-rfcs.yml b/.github/workflows/open-rfcs.yml index 9148f5e..00742b7 100644 --- a/.github/workflows/open-rfcs.yml +++ b/.github/workflows/open-rfcs.yml @@ -21,7 +21,7 @@ jobs: - name: Run CLI id: cli - run: echo "::set-output name=payload::$(artsy scheduled:rfcs)" + run: echo "PAYLOAD=$(artsy scheduled:rfcs)" >> "$GITHUB_OUTPUT" env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} @@ -29,6 +29,6 @@ jobs: uses: 8398a7/action-slack@v3 with: status: custom - custom_payload: ${{steps.cli.outputs.payload}} + custom_payload: ${{steps.cli.outputs.PAYLOAD}} env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/recently-published.yml b/.github/workflows/recently-published.yml index 9fe58c3..d15147d 100644 --- a/.github/workflows/recently-published.yml +++ b/.github/workflows/recently-published.yml @@ -21,7 +21,7 @@ jobs: - name: Run CLI id: cli - run: echo "::set-output name=payload::$(artsy scheduled:recently-published)" + run: echo "PAYLOAD=$(artsy scheduled:recently-published)" >> "$GITHUB_OUTPUT" env: SLACK_WEB_API_TOKEN: ${{ secrets.SLACK_WEB_API_TOKEN }} @@ -29,6 +29,6 @@ jobs: uses: 8398a7/action-slack@v3 with: status: custom - custom_payload: ${{steps.cli.outputs.payload}} + custom_payload: ${{steps.cli.outputs.PAYLOAD}} env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/standup-reminder.yml b/.github/workflows/standup-reminder.yml index 5ef59b8..eb8f770 100644 --- a/.github/workflows/standup-reminder.yml +++ b/.github/workflows/standup-reminder.yml @@ -21,7 +21,7 @@ jobs: - name: Run CLI id: cli - run: echo "::set-output name=payload::$(artsy scheduled:standup-reminder)" + run: echo "PAYLOAD=$(artsy scheduled:standup-reminder)" >> "$GITHUB_OUTPUT" env: OPSGENIE_API_KEY: ${{ secrets.OPSGENIE_API_KEY }} SLACK_WEB_API_TOKEN: ${{ secrets.SLACK_WEB_API_TOKEN }} @@ -30,6 +30,6 @@ jobs: uses: 8398a7/action-slack@v3 with: status: custom - custom_payload: ${{steps.cli.outputs.payload}} + custom_payload: ${{steps.cli.outputs.PAYLOAD}} env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} \ No newline at end of file + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}