From fb95d62bf63b159fbb2a12a951b2c028246ec6c3 Mon Sep 17 00:00:00 2001 From: AlejandroCN7 Date: Fri, 5 Jan 2024 12:13:54 +0000 Subject: [PATCH] [HOTFIX] Updated checkout action version --- .github/workflows/create_pr.yml | 8 ++++---- .github/workflows/create_release.yml | 2 ++ .github/workflows/merge_pr.yml | 8 ++++---- .github/workflows/protection.yml | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/create_pr.yml b/.github/workflows/create_pr.yml index db37ccd9c6..6a50980e59 100644 --- a/.github/workflows/create_pr.yml +++ b/.github/workflows/create_pr.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v5 with: @@ -37,7 +37,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v5 with: @@ -51,7 +51,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Verify documentation update uses: dorny/paths-filter@v2 id: verify-documentation-update @@ -74,7 +74,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build the latest Docker image run: docker build . --file Dockerfile --build-arg SINERGYM_EXTRAS=[test] --tag pullrequest/sinergym:latest - name: Execute tests from container diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index d52b448664..af4c8e7bc7 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -56,6 +56,8 @@ jobs: # IMPORTANT: this permission is mandatory for trusted publishing id-token: write steps: + - name: Checkout code + uses: actions/checkout@v4 - name: Preparing dist directory run: python setup.py sdist - name: Publish package distributions to PyPI diff --git a/.github/workflows/merge_pr.yml b/.github/workflows/merge_pr.yml index ff9e7849bb..8ef8759c2a 100644 --- a/.github/workflows/merge_pr.yml +++ b/.github/workflows/merge_pr.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v5 with: @@ -47,7 +47,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Python @@ -89,7 +89,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build the latest Docker image run: docker build . --file Dockerfile --build-arg SINERGYM_EXTRAS=[test] --tag pushmain/sinergym:latest - name: Create a shared folder for coverage output @@ -115,7 +115,7 @@ jobs: steps: - name: Checkout code if: "${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' }}" - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build the latest Docker image if: "${{ env.DOCKER_USER != '' && env.DOCKER_PASSWORD != '' }}" run: docker build . --file Dockerfile --build-arg SINERGYM_EXTRAS=[extras] --tag $DOCKER_USER/sinergym:latest diff --git a/.github/workflows/protection.yml b/.github/workflows/protection.yml index 7c82d993a4..8398c651c5 100644 --- a/.github/workflows/protection.yml +++ b/.github/workflows/protection.yml @@ -8,7 +8,7 @@ jobs: steps: - name: Copy code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: check workflows and tests changes uses: dorny/paths-filter@v2