.github: Bump versions of all used actions

Bump the versions of all used actions to the latest stable version and
try to use the same config across files and defaults where sensible.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
Felix Matouschek
2024-02-27 16:40:33 +01:00
parent 3dda5fbce6
commit 205ef04954
5 changed files with 12 additions and 14 deletions

View File

@@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
path: ansible_collections/kubevirt/core path: ansible_collections/kubevirt/core
fetch-depth: 0 fetch-depth: 0
@@ -35,7 +35,7 @@ jobs:
current-context: default current-context: default
EOF EOF
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: '3.11'
cache: 'pip' cache: 'pip'

View File

@@ -26,13 +26,13 @@ jobs:
pages: write pages: write
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
path: ansible_collections/kubevirt/core path: ansible_collections/kubevirt/core
fetch-depth: 0 fetch-depth: 0
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: 3.11 python-version: 3.11
cache: 'pip' cache: 'pip'

View File

@@ -20,10 +20,10 @@ jobs:
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v3 uses: actions/setup-python@v5
with: with:
python-version: '3.10' python-version: '3.10'

View File

@@ -125,10 +125,10 @@ jobs:
name: "${{ matrix.test-target }} / py${{ matrix.python-version }} / ${{ matrix.ansible-version }}" name: "${{ matrix.test-target }} / py${{ matrix.python-version }} / ${{ matrix.ansible-version }}"
steps: steps:
- name: Checkout kubevirt.core repository - name: Checkout kubevirt.core repository
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
path: ${{ env.source }} path: ${{ env.source }}
fetch-depth: "0" fetch-depth: 0
if: inputs.ansible_test_targets != '' if: inputs.ansible_test_targets != ''
- name: install dependencies collection - name: install dependencies collection
@@ -147,11 +147,9 @@ jobs:
if: inputs.ansible_test_targets != '' if: inputs.ansible_test_targets != ''
- name: install kind / kubectl - name: install kind / kubectl
uses: helm/kind-action@v1.8.0 uses: helm/kind-action@v1.9.0
with: with:
install_only: true install_only: true
version: v0.20.0
kubectl_version: v1.27.3
if: inputs.ansible_test_targets != '' if: inputs.ansible_test_targets != ''
- name: deploy kubevirt - name: deploy kubevirt

View File

@@ -18,12 +18,12 @@ jobs:
tag_version: ${{ steps.get_version.outputs.TAG_VERSION }} tag_version: ${{ steps.get_version.outputs.TAG_VERSION }}
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: "3.x" python-version: "3.x"
cache: 'pip' cache: 'pip'
@@ -38,7 +38,7 @@ jobs:
- name: Fail if tag exists - name: Fail if tag exists
if: ${{ steps.get_version.outputs.TAG_VERSION == steps.check_tag.outputs.TAG_EXISTS }} if: ${{ steps.get_version.outputs.TAG_VERSION == steps.check_tag.outputs.TAG_EXISTS }}
uses: actions/github-script@v3 uses: actions/github-script@v7
with: with:
script: | script: |
core.setFailed('Release tag already exists') core.setFailed('Release tag already exists')