diff --git a/.changeset/red-paws-ring.md b/.changeset/red-paws-ring.md new file mode 100644 index 00000000000..bee60532207 --- /dev/null +++ b/.changeset/red-paws-ring.md @@ -0,0 +1,5 @@ +--- +"@asyncapi/cli": patch +--- + +ci: bump artifact actions to v4 diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index ddc04fd14b1..1bfd870ceaa 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -19,7 +19,7 @@ jobs: - name : Checkout repository uses: actions/checkout@v4 with: - ref: tags/${{ github.event.release.tag_name }} + ref: ${{ github.event.release.tag_name }} - name: Set Up QEMU uses: docker/setup-qemu-action@v2 diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 49960223be7..3b6a1ed0038 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -11,14 +11,14 @@ jobs: - if: > !github.event.pull_request.draft && !( (github.actor == 'asyncapi-bot' && ( - startsWith(github.event.pull_request.title, 'ci: update of files from global .github repo') || + startsWith(github.event.pull_request.title, 'ci: update of files from global .github repo') || startsWith(github.event.pull_request.title, 'chore(release):') )) || (github.actor == 'asyncapi-bot-eve' && ( - startsWith(github.event.pull_request.title, 'ci: update of files from global .github repo') || + startsWith(github.event.pull_request.title, 'ci: update of files from global .github repo') || startsWith(github.event.pull_request.title, 'chore(release):') )) || - (github.actor == 'allcontributors[bot]' && + (github.actor == 'allcontributors[bot]' && startsWith(github.event.pull_request.title, 'docs: add') ) ) @@ -54,7 +54,7 @@ jobs: tags: asyncapi/github-action-for-cli:${{ steps.docker_version.outputs.action_version }} outputs: type=docker,dest=/tmp/asyncapi.tar - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: asyncapi path: /tmp/asyncapi.tar @@ -66,7 +66,7 @@ jobs: needs: [should-workflow-run, build-docker] steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: asyncapi path: /tmp @@ -81,8 +81,8 @@ jobs: filepath: ./github-action/test/asyncapi.yml - name: Assert GitHub Action run: | - echo "Listing all files" - ls -R + echo "Listing all files" + ls -R echo "Asserting GitHub Action" if [ -f "./output/asyncapi.md" ]; then echo "Files exist" @@ -98,7 +98,7 @@ jobs: needs: [should-workflow-run, build-docker] steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: asyncapi path: /tmp @@ -119,7 +119,7 @@ jobs: needs: [should-workflow-run, build-docker] steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: asyncapi path: /tmp @@ -146,14 +146,14 @@ jobs: echo "Action failed" exit 1 fi - + test-custom-output: if: ${{ needs.should-workflow-run.outputs.shouldrun == 'true' }} runs-on: ubuntu-latest needs: [should-workflow-run, build-docker] steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: asyncapi path: /tmp @@ -179,14 +179,14 @@ jobs: echo "Action failed" exit 1 fi - + test-file-not-found: if: ${{ needs.should-workflow-run.outputs.shouldrun == 'true' }} runs-on: ubuntu-latest needs: [should-workflow-run, build-docker] steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: asyncapi path: /tmp @@ -209,14 +209,14 @@ jobs: else echo "Test Success: non_existent_file.yml threw an error as expected" fi - + test-invalid-input: if: ${{ needs.should-workflow-run.outputs.shouldrun == 'true' }} runs-on: ubuntu-latest needs: [should-workflow-run, build-docker] steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: asyncapi path: /tmp @@ -248,7 +248,7 @@ jobs: needs: [should-workflow-run, build-docker] steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: asyncapi path: /tmp @@ -275,14 +275,14 @@ jobs: echo "Action failed" exit 1 fi - + test-bundle: if: ${{ needs.should-workflow-run.outputs.shouldrun == 'true' }} runs-on: ubuntu-latest needs: [should-workflow-run, build-docker] steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: asyncapi path: /tmp @@ -309,14 +309,14 @@ jobs: echo "Action failed" exit 1 fi - + test-convert: if: ${{ needs.should-workflow-run.outputs.shouldrun == 'true' }} runs-on: ubuntu-latest needs: [should-workflow-run, build-docker] steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: asyncapi path: /tmp @@ -329,7 +329,7 @@ jobs: uses: ./ with: command: convert - filepath: github-action/test/asyncapi.yml + filepath: github-action/test/asyncapi.yml output: output/convert/asyncapi.yaml - name: Assert GitHub Action run: | diff --git a/.sonarcloud.properties b/.sonarcloud.properties index fbba2f0d869..c3855a2d181 100644 --- a/.sonarcloud.properties +++ b/.sonarcloud.properties @@ -1,4 +1,4 @@ -sonar.exclusions=test/**/*,Dockerfile +sonar.exclusions=test/**/*,Dockerfile,github-action/Dockerfile sonar.issue.ignore.multicriteria=e1,e2 # Exclude copy recursively and root user issue in Dockerfile