Skip to content

Commit

Permalink
fix: re-running pipelines (#448)
Browse files Browse the repository at this point in the history
* fix: re-running pipelines

* chore: use CIRCLE_PIPELINE_ID variable for cache unique cache key

* chore: combine it with thread id
  • Loading branch information
atanass authored Mar 27, 2024
1 parent 1e65689 commit c87d6c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ steps:
steps:
- restore_cache:
keys:
- cache-<< parameters.thread_id >>-{{ .Environment.CIRCLE_WORKFLOW_ID }}
- cache-<< parameters.thread_id >>-{{ .Environment.CIRCLE_PIPELINE_ID }}
- run:
when: always
name: << parameters.step_name >>
Expand Down Expand Up @@ -134,6 +134,6 @@ steps:
equal: [ "", <<parameters.thread_id>> ]
steps:
- save_cache:
key: cache-<< parameters.thread_id >>-{{ .Environment.CIRCLE_WORKFLOW_ID }}
key: cache-<< parameters.thread_id >>-{{ .Environment.CIRCLE_PIPELINE_ID }}
paths:
- /tmp/SLACK_THREAD_INFO

0 comments on commit c87d6c7

Please sign in to comment.