Python 3.13 REPL support #929
Workflow file for this run
This file contains 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 Check | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
if: ${{ !github.event.pull_request.draft }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout commit logs | |
run: | | |
git init | |
git fetch --filter=blob:none "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" "$GITHUB_BASE_REF" "$GITHUB_REF" | |
- name: Check for DCO sign-offs | |
run: | | |
no_sign_off="$(git log --no-merges --grep=Signed-off-by --invert-grep "FETCH_HEAD..$GITHUB_SHA")" | |
if [ -z "$no_sign_off" ]; then | |
echo "All commits have a Developer Certificate of Origin sign-off" | |
else | |
echo "The following commits are missing a Developer Certificate of Origin sign-off;" | |
echo "see https://github.com/osandov/drgn/blob/main/CONTRIBUTING.rst#signing-off" | |
echo | |
echo "$no_sign_off" | |
exit 1 | |
fi |