diff --git a/.github/actions/upload-artifact/action.yaml b/.github/actions/upload-artifact/action.yaml new file mode 100644 index 00000000..f26c0b1e --- /dev/null +++ b/.github/actions/upload-artifact/action.yaml @@ -0,0 +1,15 @@ +inputs: + name: + required: true + path: + required: true + +runs: + using: composite + steps: + - + name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ inputs.name }} + path: ${{ inputs.path }} diff --git a/.github/workflows/checks.desktop-runtime-errors.yaml b/.github/workflows/checks.desktop-runtime-errors.yaml index f1e38b44..6a01a277 100644 --- a/.github/workflows/checks.desktop-runtime-errors.yaml +++ b/.github/workflows/checks.desktop-runtime-errors.yaml @@ -70,7 +70,7 @@ jobs: - name: Upload screenshot if: always() # Run even if previous step fails - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-artifact with: name: screenshot-${{ matrix.os }} path: screenshot.png diff --git a/.github/workflows/tests.e2e.yaml b/.github/workflows/tests.e2e.yaml index b7a13905..3c16dca3 100644 --- a/.github/workflows/tests.e2e.yaml +++ b/.github/workflows/tests.e2e.yaml @@ -51,14 +51,14 @@ jobs: - name: Upload screenshots if: failure() # Run only if previous steps fail because screenshots will be generated only if E2E test failed - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-artifact with: name: e2e-screenshots-${{ matrix.os }} path: ${{ steps.artifacts.outputs.SCREENSHOTS_DIR }} - name: Upload videos if: always() # Run even if previous steps fail because test run video is always captured - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-artifact with: name: e2e-videos-${{ matrix.os }} path: ${{ steps.artifacts.outputs.VIDEOS_DIR }}