From 400286f92696035c43ebf4e2cfbee26cfa74049e Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Thu, 26 Feb 2026 01:32:16 -0800 Subject: [PATCH 1/2] fix typo in pre-commit autoupdate workflow --- .github/workflows/pre-commit-autoupdate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index 2727f554dd..84770153d0 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -25,7 +25,7 @@ jobs: pull-requests: write steps: - - name: Checkout DPNP repo + - name: Checkout dpctl repo uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4.2.2 - name: Set up python From a9968af3807ea72ead0d9553f25f5b820c120c7b Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Thu, 26 Feb 2026 14:14:37 -0800 Subject: [PATCH 2/2] adjust pre-commit auto-update workflow update actions, fix incorrect tags --- .github/workflows/pre-commit-autoupdate.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index 84770153d0..d3a4ff5e2b 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -1,14 +1,11 @@ name: Autoupdate pre-commit on: - # For Branch-Protection check. Only the default branch is supported. See - # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection - branch_protection_rule: + workflow_dispatch: # To guarantee Maintained check is occasionally updated. See # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained schedule: - cron: '28 2 * * 6' # Saturday at 02:28 UTC - workflow_dispatch: permissions: read-all @@ -25,13 +22,13 @@ jobs: pull-requests: write steps: - - name: Checkout dpctl repo - uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4.2.2 + - name: Checkout repo + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up python - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v5.6.0 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: - python-version: '3.13' + python-version: '3.14' - name: Install pre-commit run: pip install pre-commit @@ -40,7 +37,7 @@ jobs: run: pre-commit autoupdate - name: Create a PR with autoupdate changes - uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 #v8.1.0 + uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0 with: commit-message: 'chore: update pre-commit hooks' add-paths: .pre-commit-config.yaml