From 25549d97c9ef270d6e4eaf5c1115013d8051dc44 Mon Sep 17 00:00:00 2001 From: Kenneth Hsu Date: Sun, 31 Mar 2024 15:40:24 -0700 Subject: [PATCH] Bump versions of actions in workflows. --- .github/workflows/data_tests.yml | 8 ++++---- .github/workflows/data_tests_changed_files.yml | 12 ++++++------ .github/workflows/pull_request_comment.yml | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/data_tests.yml b/.github/workflows/data_tests.yml index 42bca84..12524f7 100644 --- a/.github/workflows/data_tests.yml +++ b/.github/workflows/data_tests.yml @@ -16,17 +16,17 @@ jobs: steps: - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.x - name: Check out data - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: data - name: Check out data tests - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: openelections/openelections-data-tests ref: v2.2.0 @@ -36,7 +36,7 @@ jobs: run: python3 ${{ github.workspace }}/data_tests/run_tests.py --group-failures --log-file=${{ env.LOG_FILE }} ${{ matrix.test }} ${{ github.workspace }}/data - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: ${{ matrix.test }}_full_logs diff --git a/.github/workflows/data_tests_changed_files.yml b/.github/workflows/data_tests_changed_files.yml index 285269b..235b091 100644 --- a/.github/workflows/data_tests_changed_files.yml +++ b/.github/workflows/data_tests_changed_files.yml @@ -21,18 +21,18 @@ jobs: run: echo ${{ github.event.number }} > pull_request_number.txt - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.x - name: Check out data - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: data fetch-depth: 0 - name: Check out data tests - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: openelections/openelections-data-tests ref: v2.2.0 @@ -40,7 +40,7 @@ jobs: - name: Get changed *.csv files id: changed-files - uses: tj-actions/changed-files@v35 + uses: tj-actions/changed-files@v44 with: path: data files: | @@ -51,14 +51,14 @@ jobs: run: python3 ${{ github.workspace }}/data_tests/run_tests.py --files ${{ steps.changed-files.outputs.added_files }} --group-failures --log-file=${{ env.LOG_FILE }} --truncate-log-file ${{ matrix.test }} ${{ github.workspace }}/data - name: Upload the pull request number - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: pull_request_number path: ./pull_request_number.txt - name: Upload error logs - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: ${{ matrix.test }} diff --git a/.github/workflows/pull_request_comment.yml b/.github/workflows/pull_request_comment.yml index 9da0e37..6520612 100644 --- a/.github/workflows/pull_request_comment.yml +++ b/.github/workflows/pull_request_comment.yml @@ -18,7 +18,7 @@ jobs: steps: - name: Download artifacts - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v3 with: run_id: ${{ github.event.workflow_run.id }} @@ -30,7 +30,7 @@ jobs: - name: Check for failures id: check_failures - uses: andstor/file-existence-action@v2 + uses: andstor/file-existence-action@v3 with: files: ./${{ matrix.test }}/${{ matrix.test }}.txt @@ -43,7 +43,7 @@ jobs: - name: Comment on pull request if: steps.check_failures.outputs.files_exists == 'true' - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | await github.rest.issues.createComment({