Skip to content

Commit

Permalink
Merge pull request #978 from Altinity/977-github-action-fails-because…
Browse files Browse the repository at this point in the history
…-of-deprecated-upload-artifact-version

Updated version of upload-artifact to v4.
  • Loading branch information
subkanthi authored Jan 23, 2025
2 parents e217574 + 4932b76 commit 6252738
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: mvn -B package install -DskipTests=true --file pom.xml

- name: Upload Maven build (Kafka)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: clickhouse-sink-connector-kafka-${{ env.IMAGE_TAG }}.jar
path: sink-connector/target/clickhouse-kafka-sink-connector-${{ env.PROJECT_VERSION }}.jar
Expand All @@ -69,7 +69,7 @@ jobs:
docker save altinityinfra/clickhouse-sink-connector:${{ env.IMAGE_TAG }}-kafka | gzip > clickhouse-sink-connector_${{ env.IMAGE_TAG }}-kafka.tar.gz
- name: Upload Docker tar (Kafka)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ github.event.pull_request.head.repo.full_name != 'Altinity/clickhouse-sink-connector' && github.event_name != 'workflow_dispatch' }}
with:
name: clickhouse-sink-connector_${{ env.IMAGE_TAG }}-kafka.tar.gz
Expand All @@ -88,7 +88,7 @@ jobs:
run: mvn -B package -DskipTests=true --file pom.xml

- name: Upload Maven build (Lightweight)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: clickhouse-sink-connector-lt-${{ env.IMAGE_TAG }}.jar
path: sink-connector-lightweight/target/clickhouse-debezium-embedded-${{ env.PROJECT_VERSION }}.jar
Expand All @@ -103,7 +103,7 @@ jobs:
docker save altinityinfra/clickhouse-sink-connector:${{ env.IMAGE_TAG }}-lt | gzip > clickhouse-sink-connector_${{ env.IMAGE_TAG }}-lt.tar.gz
- name: Upload Docker tar (Lightweight)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ github.event.pull_request.head.repo.full_name != 'Altinity/clickhouse-sink-connector' && github.event_name != 'workflow_dispatch' }}
with:
name: clickhouse-sink-connector_${{ env.IMAGE_TAG }}-lt.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
body_path: ${{ github.workspace }}/release-notes/${{ env.release_tag }}.md

- name: Download jar files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

# - name: Zip jar files
# run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/testflows-sink-connector-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
if: ${{ github.event.pull_request.head.repo.full_name != 'Altinity/clickhouse-sink-connector' && github.event_name != 'workflow_dispatch' }}
with:
name: clickhouse-sink-connector_${{ github.event.number }}-${{ github.sha }}-kafka.tar.gz
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
AWS_DEFAULT_REGION: 'eu-west-2'
run: aws s3 cp . s3://altinity-test-reports/altinity-sink-connector/testflows/${{ steps.date.outputs.date }}_sink/ --recursive --exclude "*" --include "*.log" --include "*.html"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: testflows-sink-connector-kafka-artefacts
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/testflows-sink-connector-lightweight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
if: ${{ github.event.pull_request.head.repo.full_name != 'Altinity/clickhouse-sink-connector' && github.event_name != 'workflow_dispatch' }}
with:
name: clickhouse-sink-connector_${{ github.event.number }}-${{ github.sha }}-lt.tar.gz
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
AWS_DEFAULT_REGION: 'eu-west-2'
run: aws s3 cp . s3://altinity-test-reports/altinity-sink-connector/testflows/${{ steps.date.outputs.date }}_sink_lw/ --recursive --exclude "*" --include "*.log" --include "*.html"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: testflows-sink-connector-lightweight-artefacts
Expand All @@ -151,7 +151,7 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
if: ${{ github.event.pull_request.head.repo.full_name != 'Altinity/clickhouse-sink-connector' && github.event_name != 'workflow_dispatch' }}
with:
name: clickhouse-sink-connector_${{ github.event.number }}-${{ github.sha }}-lt.tar.gz
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
AWS_DEFAULT_REGION: 'eu-west-2'
run: aws s3 cp . s3://altinity-test-reports/altinity-sink-connector/testflows/${{ steps.date.outputs.date }}_sink_lw/ --recursive --exclude "*" --include "*.log" --include "*.html"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: testflows-sink-connector-lightweight-replicated-artefacts
Expand Down

0 comments on commit 6252738

Please sign in to comment.