Skip to content

Commit

Permalink
fix other jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y committed Feb 19, 2024
1 parent cf7cbbe commit 9e3c8a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-proto-break.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/gofmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down

0 comments on commit 9e3c8a4

Please sign in to comment.