Some checks failed
Lint / govulncheck (push) Failing after 10m42s
Lint / golangci-lint (push) Failing after 10m45s
Lint / Lint markdown (push) Failing after 14m10s
Tests / Code Coverage / test-unit (push) Failing after 18m3s
Tests / Code Coverage / test-integration (push) Failing after 21m5s
Tests / Code Coverage / test-e2e (push) Failing after 24m32s
Part of https://plan.wireit.in/deepstack/browse/VUL-267/ - Upgrade dependencies as required by zenithd: - `cosmos/cosmos-sdk`: `v0.50.4` -> `v0.53.4` - `cometbft/cometbft`: `v0.38.5` -> `v0.38.19` - Update CI workflows for this Gitea fork Reviewed-on: #1 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
name: "Lint PR"
|
|
|
|
# Disabled for the gitea fork - needs a GITHUB_TOKEN
|
|
# on:
|
|
# pull_request_target:
|
|
# types:
|
|
# - opened
|
|
# - edited
|
|
# - synchronize
|
|
|
|
# Only manual trigger
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
main:
|
|
permissions:
|
|
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
|
|
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: amannn/action-semantic-pull-request@v5.4.0
|
|
id: lint_pr_title
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- uses: marocchino/sticky-pull-request-comment@v2
|
|
# When the previous steps fails, the workflow would stop. By adding this
|
|
# condition you can continue the execution with the populated error message.
|
|
if: always() && (steps.lint_pr_title.outputs.error_message != null)
|
|
with:
|
|
header: pr-title-lint-error
|
|
message: |
|
|
Hey there and thank you for opening this pull request! 👋🏼
|
|
|
|
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
|
|
|
|
Details:
|
|
|
|
```
|
|
${{ steps.lint_pr_title.outputs.error_message }}
|
|
```
|
|
|
|
# Delete a previous comment when the issue has been resolved
|
|
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
|
|
uses: marocchino/sticky-pull-request-comment@v2
|
|
with:
|
|
header: pr-title-lint-error
|
|
delete: true
|