Replace deprecated set-output with GITHUB_OUTPUT
parent
a246363012
commit
5d9e8f7fa3
|
@ -151,10 +151,10 @@ jobs:
|
|||
cd bottles
|
||||
count=$(ls *.json | wc -l | xargs echo -n)
|
||||
echo "$count bottles"
|
||||
echo "::set-output name=count::$count"
|
||||
echo "count=$count" >> $GITHUB_OUTPUT
|
||||
failures=$(ls failed/*.json | wc -l | xargs echo -n)
|
||||
echo "$failures failed bottles"
|
||||
echo "::set-output name=failures::$failures"
|
||||
echo "failures=$failures" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Upload failed bottles
|
||||
if: always() && steps.bottles.outputs.failures > 0
|
||||
|
|
|
@ -139,7 +139,7 @@ jobs:
|
|||
cd bottles
|
||||
count=$(ls *.json | wc -l | xargs echo -n)
|
||||
echo "$count bottles"
|
||||
echo "::set-output name=count::$count"
|
||||
echo "count=$count" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Upload bottles to GitHub Actions
|
||||
if: always() && steps.bottles.outputs.count > 0
|
||||
|
|
|
@ -299,10 +299,10 @@ jobs:
|
|||
cd bottles
|
||||
count=$(ls *.json | wc -l | xargs echo -n)
|
||||
echo "$count bottles"
|
||||
echo "::set-output name=count::$count"
|
||||
echo "count=$count" >> $GITHUB_OUTPUT
|
||||
failures=$(ls failed/*.json | wc -l | xargs echo -n)
|
||||
echo "$failures failed bottles"
|
||||
echo "::set-output name=failures::$failures"
|
||||
echo "failures=$failures" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Upload failed bottles
|
||||
if: always() && steps.bottles.outputs.failures > 0
|
||||
|
|
|
@ -84,6 +84,9 @@ module Homebrew
|
|||
end
|
||||
end.compact
|
||||
|
||||
puts "::set-output name=runners::#{runners.to_json}"
|
||||
github_output = ENV.fetch("GITHUB_OUTPUT") { raise "GITHUB_OUTPUT is not defined" }
|
||||
File.open(github_output, "a") do |f|
|
||||
f.puts("runners=#{runners.to_json}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue