Skip to content

Commit

Permalink
show old and new idents
Browse files Browse the repository at this point in the history
This should help figuring out why the mechanism to avoid unnessary
builds doesn't work.
  • Loading branch information
splitbrain committed Sep 2, 2024
1 parent 70e6597 commit ca8970c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ function getImageTag()
$ident = join('-', [$release, $commit, $image, $self]);
$cache = '.github/matrix.cache/' . $release;

fwrite(STDERR, "Ident: $ident\n");
$last = @file_get_contents($cache);
fwrite(STDERR, "Old: $last\n");
fwrite(STDERR, "New: $ident\n");
if ($last === $ident) {
// this combination has been built before
fwrite(STDERR, "No change. Skipping $release\n");
Expand Down

0 comments on commit ca8970c

Please sign in to comment.