Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump versions of actions in workflows #42

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/data_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/data_tests_changed_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,26 @@ 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
path: data_tests

- name: Get changed *.csv files
id: changed-files
uses: tj-actions/changed-files@v35
uses: tj-actions/changed-files@v44
with:
path: data
files: |
Expand All @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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

Expand All @@ -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({
Expand Down
Loading