We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d572b96 commit 108c90fCopy full SHA for 108c90f
1 file changed
tests/system/AutoReview/CreateNewChangelogTest.php
@@ -31,10 +31,18 @@ protected function setUp(): void
31
{
32
parent::setUp();
33
34
- exec('git describe --tags --abbrev=0 2>/dev/null', $output, $exitCode);
+ if (getenv('GITHUB_ACTIONS') !== false) {
35
+ exec('git fetch --unshallow', $output, $exitCode);
36
+ exec('git fetch --tags 2>&1', $output, $exitCode);
37
+ }
38
+
39
+ exec('git describe --tags --abbrev=0 2>&1', $output, $exitCode);
40
41
if ($exitCode !== 0) {
- $this->markTestSkipped('Unable to determine the current version from git tags.');
42
+ $this->markTestSkipped(sprintf(
43
+ "Unable to get the latest git tag.\nOutput: %s",
44
+ implode("\n", $output),
45
+ ));
46
}
47
48
// Current tag should already have the next patch docs done, so for testing purposes,
0 commit comments