diff --git a/.github/workflows/check-patch-script.yml b/.github/workflows/check-patch-script.yml new file mode 100644 index 000000000..24b8b521a --- /dev/null +++ b/.github/workflows/check-patch-script.yml @@ -0,0 +1,28 @@ +name: Check patch script for clean patch + +on: + push: + branches: + - 'master' + pull_request: + branches: + - 'master' + +jobs: + check-file: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Fetch base branch + run: | + git fetch origin ${GITHUB_BASE_REF} + + - name: Patch script run + run: | + echo "Testing patch apply" + pwd + ls + bash build/bash sonic_build_script.sh -h + echo "Patch apply - success"