From 149a9cee8b19c6e4e565ea1f9a4940d11c608560 Mon Sep 17 00:00:00 2001 From: Erik Jaegervall Date: Tue, 30 Jan 2024 09:05:25 +0100 Subject: [PATCH] Add manual dispatch for build and update action versions Signed-off-by: Erik Jaegervall --- .github/workflows/buildcheck.yml | 7 ++++--- .github/workflows/check-header.yml | 2 +- .github/workflows/pre-commit.yml | 6 ++++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/buildcheck.yml b/.github/workflows/buildcheck.yml index 4c7735f5..e3d42fee 100644 --- a/.github/workflows/buildcheck.yml +++ b/.github/workflows/buildcheck.yml @@ -9,6 +9,7 @@ on: - synchronize - reopened - ready_for_review + workflow_dispatch: concurrency: group: ci-check-${{ github.ref }} @@ -23,11 +24,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout vss-tools - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install apt dependencies run: sudo apt install -y protobuf-compiler - name: Setup Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} cache: pipenv @@ -64,7 +65,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout vss-tools - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Test Pypi packaging run: | # Separate build as we want a clean environment to make sure all dependencies are present diff --git a/.github/workflows/check-header.yml b/.github/workflows/check-header.yml index c20d7194..e119c193 100755 --- a/.github/workflows/check-header.yml +++ b/.github/workflows/check-header.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # required to grab the history of the PR fetch-depth: 0 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index ed904dee..25de0da5 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -6,11 +6,13 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # required to grab the history of the PR fetch-depth: 0 - - uses: actions/setup-python@v3 + - uses: actions/setup-python@v5 + with: + python-version: '3.10' - uses: pre-commit/action@v3.0.0 with: extra_args: --color=always --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}