Skip to content

Commit 62aa0f5

Browse files
Remove outdated GitHubActions Output Syntax (#46)
1 parent 071aaf3 commit 62aa0f5

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

app/Support/GitHubActionsOutput.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ public function render(OutputStyle $output): void
1717
if ($this->hasGithubOutputEnvironment()) {
1818
$this->setOutput($key, $value);
1919
}
20-
21-
// Set output variables using old syntax for compatibility with older versions of GitHub Actions runner.
22-
// Stops working in 2023.
23-
if (now()->year < 2023) {
24-
$output->text(sprintf('::set-output name=%s::%s', $key, $value));
25-
}
2620
}
2721
}
2822

tests/Feature/UpdateCommandTest.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,6 @@
2525
->assertSuccessful();
2626
});
2727

28-
it('outputs RELEASE_COMPARE_URL and UNRELEASED_COMPARE_URL for GitHub Actions in CI environment', function () {
29-
$this->artisan(UpdateCommand::class, [
30-
'--release-notes' => <<<'MD'
31-
### Added
32-
- New Feature A
33-
- New Feature B
34-
35-
### Changed
36-
- Update Feature C
37-
38-
### Removes
39-
- Remove Feature D
40-
MD,
41-
'--latest-version' => 'v1.0.0',
42-
'--path-to-changelog' => __DIR__.'/../Stubs/base-changelog.md',
43-
'--release-date' => '2021-02-01',
44-
'--github-actions-output' => true,
45-
])
46-
->expectsOutputToContain(sprintf('::set-output name=%s::%s', 'RELEASE_COMPARE_URL', 'https://github.com/org/repo/compare/v0.1.0...v1.0.0'))
47-
->expectsOutputToContain(sprintf('::set-output name=%s::%s', 'RELEASE_URL_FRAGMENT', '#v100---2021-02-01'))
48-
->expectsOutputToContain(sprintf('::set-output name=%s::%s', 'UNRELEASED_COMPARE_URL', 'https://github.com/org/repo/compare/v1.0.0...HEAD'))
49-
->assertSuccessful();
50-
})->skip(fn () => now()->year > 2022);
51-
5228
it('outputs RELEASE_COMPARE_URL and UNRELEASED_COMPARE_URL to GITHUB_OUTPUT environment', function () {
5329
$this->artisan(UpdateCommand::class, [
5430
'--release-notes' => <<<'MD'

0 commit comments

Comments
 (0)