Skip to content

Commit

Permalink
Merge pull request #46 from M-Yamashita01/fix-replace-set-output
Browse files Browse the repository at this point in the history
Replace set-output with GITHUB_OUTPUT
  • Loading branch information
M-Yamashita01 authored Feb 26, 2023
2 parents 4b0855b + c7aad61 commit e927c91
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/check_members_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,21 @@ def run

members_in_terraform = usernames_in_terraform.size

github_output = []
if @verify_account == 'true'
usernames = non_existing_usernames.join(', ')
if !usernames.empty?
logger.error('Some users in terraform files do not exist.')
logger.error("Non existing users: #{usernames}")
end
puts "::set-output name=non_existing_members::#{usernames}"

github_output << "non_existing_members=#{usernames}"
end

puts "::set-output name=filled_seats::#{filled_seats}"
puts "::set-output name=max_seats::#{max_seats}"
puts "::set-output name=members_in_terraform::#{members_in_terraform}"
github_output << "filled_seats=#{filled_seats}"
github_output << "max_seats=#{max_seats}"
github_output << "members_in_terraform=#{members_in_terraform}"
system("echo \"#{github_output.join('\n')}\" >> \"$GITHUB_OUTPUT\"")

exit
rescue StandardError => e
Expand Down

0 comments on commit e927c91

Please sign in to comment.