From 50f2664e7d51e77f6b213b3ce899a2a416b437b3 Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Fri, 16 Sep 2022 11:29:53 +0200 Subject: [PATCH] chore: fix danger output --- .github/workflows/danger.yml | 11 ++++++++++- .github/workflows/versioning.yml | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index 359e91f..935e492 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -4,11 +4,13 @@ on: outputs: outcome: description: Whether the Danger run finished successfully. Possible values are success, failure, cancelled, or skipped. - value: ${{ jobs.danger.steps.danger.outcome }} + value: ${{ jobs.danger.outputs.outcome }} jobs: danger: runs-on: ubuntu-latest + outputs: + outcome: ${{ steps.danger.outcome }} steps: - uses: actions/checkout@v3 with: @@ -31,3 +33,10 @@ jobs: -e DANGER_DISABLE_TRANSPILATION="true" \ ghcr.io/danger/danger-js:11.1.2 \ --failOnErrors --dangerfile ${{ runner.temp }}/dangerfile.js + + # - name: Store outputs + # if: ${{ always() }} + # id: out + # run: | + # echo "::echo::on" + # echo "::set-output name=outcome::${{ steps.danger.outcome }}" diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index ba8f779..41f86d4 100644 --- a/.github/workflows/versioning.yml +++ b/.github/workflows/versioning.yml @@ -1,4 +1,4 @@ -name: Keep the major version tags up-to-date +name: Sync tags with releases on: release: