From 9e3c8a453403d77cefd8922fef7357ae0e1df628 Mon Sep 17 00:00:00 2001 From: Gyanendra Mishra Date: Mon, 19 Feb 2024 15:07:43 +0000 Subject: [PATCH] fix other jobs --- .github/workflows/check-proto-break.yml | 2 +- .github/workflows/gofmt.yml | 3 +-- .github/workflows/golangci-lint.yml | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-proto-break.yml b/.github/workflows/check-proto-break.yml index ee399682a9..18ac81ec26 100644 --- a/.github/workflows/check-proto-break.yml +++ b/.github/workflows/check-proto-break.yml @@ -11,7 +11,7 @@ jobs: check-if-code-change: runs-on: ubuntu-latest outputs: - change: ${{ steps.check.change }} + change: ${{ steps.check.outputs.change }} steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/gofmt.yml b/.github/workflows/gofmt.yml index 131a18bd79..4853e1d5c2 100644 --- a/.github/workflows/gofmt.yml +++ b/.github/workflows/gofmt.yml @@ -24,10 +24,9 @@ jobs: if git --no-pager diff --exit-code origin/main...HEAD -- . ':!docs' ':!*.md'; then echo "::set-output name=change::false" else - echo "indeed it is true" echo "::set-output name=change::true" fi - id: check + id: check gofmt: needs: check-if-code-change if: ${{ needs.check-if-code-change.outputs.change == true }} diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index d4debf7809..5c08e30f1c 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -24,7 +24,7 @@ jobs: check-if-code-change: runs-on: ubuntu-latest outputs: - change: ${{ steps.check.change }} + change: ${{ steps.check.outputs.change }} steps: - uses: actions/checkout@v4 with: @@ -36,7 +36,7 @@ jobs: else echo "::set-output name=change::true" fi - id: check + id: check golangci: needs: check-if-code-change if: ${{ needs.check-if-code-change.outputs.change == true }}