Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

ci: drop unused checkout ref input from reusable workflows (#5495)

Dmytro Mishkin7d383ccf8272
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index d6cbb4740..c85df0f23 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -13,10 +13,6 @@ on:
required: false
type: string
default: ubuntu-latest
- ref:
- required: false
- type: string
- default: ${{ github.sha }}
cache-path:
required: false
type: string
@@ -43,8 +39,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v7
- with:
- ref: ${{ inputs.ref }}
- name: Restore cache
if: inputs.cache-path != ''
@@ -76,8 +70,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v7
- with:
- ref: ${{ inputs.ref }}
- name: Restore cache
if: inputs.cache-path != ''
@@ -109,8 +101,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v7
- with:
- ref: ${{ inputs.ref }}
- name: Restore cache
if: inputs.cache-path != ''
@@ -137,9 +127,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v7
- with:
- repository: kornia/kornia
- ref: ${{ inputs.ref }}
- name: Download coverage reports
uses: actions/download-artifact@v8
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 0670a324f..a46423f68 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -15,10 +15,6 @@ on:
required: false
type: boolean
default: false
- ref:
- required: false
- type: string
- default: ${{ github.sha }}
cache-path:
required: false
type: string
@@ -58,7 +54,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v7
with:
- ref: ${{ github.event.pull_request.head.sha || inputs.ref }}
+ ref: ${{ github.event.pull_request.head.sha }}
# On direct pull_request runs (empty inputs) fall back to a prefix restore of the
# model-weights caches saved by the test workflows. A dozen doctests build
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index d00e0b875..144fb82d4 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -63,10 +63,6 @@ on:
required: false
type: boolean
default: false
- ref:
- required: false
- type: string
- default: ${{ github.sha }}
cache-path:
required: false
type: string
@@ -96,8 +92,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v7
- with:
- ref: ${{ inputs.ref }}
- name: Restore cache
if: inputs.cache-path != ''
diff --git a/.github/workflows/tutorials.yml b/.github/workflows/tutorials.yml
index 7d9239bd8..aad3d54bb 100644
--- a/.github/workflows/tutorials.yml
+++ b/.github/workflows/tutorials.yml
@@ -13,10 +13,6 @@ on:
required: false
type: boolean
default: false
- ref:
- required: false
- type: string
- default: ${{ github.sha }}
permissions:
contents: read
@@ -34,8 +30,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v7
- with:
- ref: ${{ inputs.ref }}
- name: Set pixi environment name
id: pixi-env