⬆️ Update sha2 requirement from ^0.10 to ^0.11. #182
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # PR Title Check — validates PR titles against noa message rules. | |
| # Installed by: noa hook install-action | |
| # Requires: noa binary available in PATH (downloaded from GitHub Releases) | |
| # | |
| # The NOA_VERSION env var controls which release to fetch. | |
| # Defaults to "latest". | |
| name: PR Title Check | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install noa | |
| id: install | |
| run: | | |
| set -euo pipefail | |
| VERSION="${NOA_VERSION:-latest}" | |
| if [ "$VERSION" = "latest" ]; then | |
| URL="https://github.com/celestia-island/noa/releases/latest/download/noa-x86_64-unknown-linux-gnu" | |
| else | |
| URL="https://github.com/celestia-island/noa/releases/download/${VERSION}/noa-x86_64-unknown-linux-gnu" | |
| fi | |
| if curl -fsSL "$URL" -o /usr/local/bin/noa; then | |
| chmod +x /usr/local/bin/noa | |
| echo "installed=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "noa release not found, skipping PR title check" | |
| echo "installed=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Check PR title | |
| if: steps.install.outputs.installed == 'true' | |
| run: noa hook validate-msg -m "${{ github.event.pull_request.title }}" -p celestia |