Skip to content

Use Unique Cache Keys for Workflow Reruns #858

@arielswalker

Description

@arielswalker

Checklist (Please check before submitting)

  • I reviewed the Contributing Guide.
  • I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.

Describe the bug
Failed to save: Unable to reserve cache with key build-2121-release, another job may be creating this cache. Each rerun or attempt of a workflow is using the same cache key. An example of a failed workflow due to this error can be found here.

To Reproduce
Run a workflow that uses cache keys and rerun the same workflow.

Expected behavior
Should use ${{ github.run_id }} and ${{ github.run_attempt }}.

System observed on:
GitHub Actions

Reporter Info
Ariel Walker, MCSG TECH.

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