diff --git a/.github/workflows/create_pr.yml b/.github/workflows/create_pr.yml index db37ccd9c..6a50980e5 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 d52b44866..af4c8e7bc 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 ff9e7849b..8ef8759c2 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 7c82d993a..8398c651c 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