Sha256: 62dbf415fecfe28e73fc7b0ac54d74ac906047adb7fd86475d5918c56ee381d4
Contents?: true
Size: 792 Bytes
Versions: 1
Compression:
Stored size: 792 Bytes
Contents
# frozen_string_literal: true require "colorator" require "json" data = JSON.parse(ENV["EVENT_JSON"]) label = %Q(TAG #{data["ref"].delete_prefix("refs/tags/").cyan}) puts <<-TEXT --------------------------------------------------------- #{label.center(64)} --------------------------------------------------------- Pushed by: #{data.dig("pusher", "name")&.cyan} Repository: #{data.dig("repository", "full_name")&.cyan} Head Commit Details: #{data.dig("head_commit", "message").inspect.cyan} Author: #{data.dig("head_commit", "author", "username")&.cyan} Committer: #{data.dig("head_commit", "committer", "username")&.cyan} SHA ID: #{data.dig("head_commit", "id")&.cyan} --------------------------------------------------------- TEXT
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll_test_plugin-0.1.2 | .github/workflows/scripts/tag_info.rb |