docs(power): refine proprietary license wording in [POWER.md] #14
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
| name: DCO | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, edited] | |
| jobs: | |
| signoff-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Validate Signed-off-by trailers | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| base_sha="${{ github.event.pull_request.base.sha }}" | |
| head_sha="${{ github.event.pull_request.head.sha }}" | |
| missing=0 | |
| while read -r commit; do | |
| [ -z "$commit" ] && continue | |
| if ! git show -s --format=%B "$commit" | grep -Eiq '^Signed-off-by:\s+.+ <.+>$'; then | |
| echo "::error::Commit $commit is missing a valid Signed-off-by trailer." | |
| missing=1 | |
| fi | |
| done < <(git rev-list --no-merges "${base_sha}..${head_sha}") | |
| if [ "$missing" -ne 0 ]; then | |
| echo "DCO check failed. Rebase with signoff: git rebase --signoff origin/main" | |
| exit 1 | |
| fi |