Skip to content

Commit

Permalink
[OSS-ONLY] Fix build failure due to deprecated artifact version (#2933)
Browse files Browse the repository at this point in the history
Build is failing due to deprecated artifact version for actions/upload-artifact in the workflows.

((https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/))

Signed-off-by: Shameem Ahmed <[email protected]>
  • Loading branch information
ahmed-shameem authored Sep 13, 2024
1 parent 0c2878d commit 3e2cd7f
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- name: Upload Log
if: always() && steps.jdbc.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: postgres-log
path: ~/postgres/data/logfile
Expand All @@ -76,14 +76,14 @@ jobs:
- name: Upload Run Summary
if: always() && steps.test-file-rename == 'success'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: run-summary.log
path: test/JDBC/Info/run-summary.log

- name: Upload Output Diff
if: always() && steps.jdbc.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: output-diff.diff
path: test/JDBC/Info/output-diff.diff
6 changes: 3 additions & 3 deletions .github/workflows/jdbc-tests-with-parallel-query.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Upload Log
if: always() && steps.jdbc.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: postgres-log
path: ~/psql/data/logfile
Expand All @@ -73,14 +73,14 @@ jobs:
- name: Upload Run Summary
if: always() && steps.test-file-rename == 'success'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: run-summary.log
path: test/JDBC/Info/run-summary.log

- name: Upload Output Diff
if: always() && steps.jdbc.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: output-diff.diff
path: test/JDBC/Info/output-diff.diff
6 changes: 3 additions & 3 deletions .github/workflows/jdbc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Upload Log
if: always() && steps.jdbc.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: postgres-log
path: ~/postgres/data/logfile
Expand All @@ -67,14 +67,14 @@ jobs:
- name: Upload Run Summary
if: always() && steps.test-file-rename == 'success'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: run-summary.log
path: test/JDBC/Info/run-summary.log

- name: Upload Output Diff
if: always() && steps.jdbc.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: output-diff.diff
path: test/JDBC/Info/output-diff.diff
8 changes: 4 additions & 4 deletions .github/workflows/major-version-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ jobs:
- name: Upload Postgres log
if: always() && steps.jdbc.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: postgres-log
path: ~/${{env.NEW_INSTALL_DIR}}/data/logfile

- name: Upload upgrade Log
if: always() && steps.run-pg_upgrade.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: upgrade-logs
path: ~/upgrade/*.log
Expand All @@ -161,14 +161,14 @@ jobs:
- name: Upload Run Summary
if: always() && steps.test-file-rename.outcome == 'success'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: run-summary.log
path: test/JDBC/Info/run-summary.log

- name: Upload Output Diff
if: always() && steps.test-file-rename.outcome == 'success'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: output-diff.diff
path: test/JDBC/Info/output-diff.diff
6 changes: 3 additions & 3 deletions .github/workflows/minor-version-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Upload Log
if: always() && steps.jdbc.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: postgres-log
path: ~/postgres/data/logfile
Expand All @@ -92,14 +92,14 @@ jobs:
- name: Upload Run Summary
if: always() && steps.test-file-rename == 'success'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: upgrade-run-summary.log
path: test/JDBC/Info/upgrade-run-summary.log

- name: Upload Output Diff
if: always() && steps.jdbc.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: upgrade-output-diff.diff
path: test/JDBC/Info/upgrade-output-diff.diff
6 changes: 3 additions & 3 deletions .github/workflows/singledb-version-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:

- name: Upload New Postgres log
if: always() && steps.upgrade-and-verify.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: postgres-log-new
path: ~/${{env.NEW_INSTALL_DIR}}/data/logfile

- name: Upload upgrade Log
if: always() && steps.upgrade-and-verify.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: upgrade-logs
path: ~/upgrade/*.log
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Upload Run Summary
if: always() && steps.test-file-rename.outcome == 'success'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Test Run Artificats
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sql-validation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
python3 sql_validation.py
- name: Upload artifacts
if: always() && steps.run-test.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: expected-output-files
path: test/python/output/sql_validation_framework/*
2 changes: 1 addition & 1 deletion .github/workflows/tap-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Upload Logs
if: always() && steps.tap.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: tap_tests_logs
path: contrib/babelfishpg_tds/test/tmp_check/log
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Upload Log
if: always() && steps.unit.outcome == 'failure'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: postgres-log
path: ~/psql/data/logfile
2 changes: 1 addition & 1 deletion .github/workflows/upgrade-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
- name: Upload Logs
if: always() && steps.upgrade-and-test.outcome != 'success'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: upgrade-logs-${{ matrix.upgrade-path.title }}
path: |
Expand Down

0 comments on commit 3e2cd7f

Please sign in to comment.