mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
[CI] GitHub Actions deprecated the set-output command
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
|||||||
- name: Get version number
|
- name: Get version number
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=value::$(python3 -u scripts/build.py --version)"
|
echo "value=$(python3 -u scripts/build.py --version)" >>$GITHUB_OUTPUT
|
||||||
- name: Remove artifacts
|
- name: Remove artifacts
|
||||||
uses: swift-project/delete-artifact@swift
|
uses: swift-project/delete-artifact@swift
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -33,9 +33,11 @@ while (<<>>)
|
|||||||
++$cmds{"::warning file=$result{file}::$result{msg}"};
|
++$cmds{"::warning file=$result{file}::$result{msg}"};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
my $bool = %cmds ? 'true' : 'false';
|
|
||||||
print "$_\n" for sort keys %cmds;
|
print "$_\n" for sort keys %cmds;
|
||||||
print "::set-output name=warnings::$bool\n";
|
|
||||||
|
my $bool = %cmds ? 'true' : 'false';
|
||||||
|
open my $GITHUB_OUTPUT, ">> $ENV{GITHUB_OUTPUT}" or die "open: $!";
|
||||||
|
print $GITHUB_OUTPUT "warnings=$bool\n";
|
||||||
|
|
||||||
sub extractWarning
|
sub extractWarning
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user