Skip to content

Module ‐ Patch

Stéphane Brunner edited this page Mar 19, 2024 · 2 revisions

Module that apply the patch on the pull request.

Usage in the workflow:

on:
  pull-request:

jobs:
  <name>:
    steps:
      ...
      - run: git diff --exit-code --patch > diff.patch
      - uses: actions/upload-artifact@v4
        with:
          name: <commit_message>.patch
          path: diff.patch
          retention-days: 1
        if: failure()