From a8eb5100509045fbaa63f04d1994198c80c8f1e5 Mon Sep 17 00:00:00 2001 From: Maciej Pijanowski Date: Thu, 12 Jun 2025 17:51:19 +0200 Subject: [PATCH] .github/workflows/check-upstream-status.yml: add Change-Id: I74d9fa455260df8213afb8a92b587095e948c56b Signed-off-by: Maciej Pijanowski Upstream-Status: Inappropriate [Dasharo downstream] --- .github/workflows/check-upstream-status.yml | 19 +++++++++++++++++++ .pre-commit-config.yaml | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/check-upstream-status.yml diff --git a/.github/workflows/check-upstream-status.yml b/.github/workflows/check-upstream-status.yml new file mode 100644 index 0000000000..ccdc55e7b6 --- /dev/null +++ b/.github/workflows/check-upstream-status.yml @@ -0,0 +1,19 @@ +name: check-upstream-status + +on: + pull_request: + +jobs: + check-upstream-status: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + # Checkout pull request HEAD commit instead of merge commit + # See: https://github.com/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 0 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.1 + with: + extra_args: check-upstream-status --hook-stage pre-push diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 85866d7dc6..42c3b0431f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,7 +46,7 @@ repos: types: [file] - repo: https://github.com/3mdeb/hooks - rev: v0.1.6 + rev: v0.1.7 # Can be triggered manually with command: # pre-commit run --hook-stage pre-push check-upstream-status hooks: