Skip to content

matrix.config.r and matrix.config.id is not always present #800

@pascalgulikers

Description

@pascalgulikers

name: ${{ runner.os }}-${{ runner.arch }}-r${{ matrix.config.r }}-${{ matrix.config.id || strategy.job-index }}-results

name: ${{ runner.os }}-r${{ matrix.config.r }}-testthat-snapshots

This could result in:

Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run

because of uninitialized variables:

Run actions/upload-artifact@v4
  with:
    name: Linux-X64-r-0-results

and

Run actions/upload-artifact@v4
  with:
    name: Linux-r-testthat-snapshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions