Skip to content

Commit

Permalink
[BRE-265] Updating slack tag and commit hash to links
Browse files Browse the repository at this point in the history
  • Loading branch information
pixman20 committed Nov 5, 2024
1 parent 6a4dc51 commit 11df205
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion report-deployment-status-to-slack/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ inputs:
project:
description: "The name of the project."
required: true
project_owner:
description: "The owner/org of the project"
required: false
default: bitwarden
tag:
description: "The name of the branch or tag."
required: true
Expand Down Expand Up @@ -65,10 +69,12 @@ runs:
local environment="${{ inputs.environment }}"
local tag="${{ inputs.tag }}"
local project="${{ inputs.project }}"
local project_owner="${{ inputs.project_owner }}"
local url="${{ inputs.url }}"
local commit_sha="${{ inputs.commit-sha }}"
local repository_url="${{ github.server_url }}/${{ github.repository }}"
# This action can be called from other repositories with external refs/shas, so use the passed in project rather than github.repository
local repository_url="${{ github.server_url }}/$project_owner/$project"
local commit_url="$repository_url/commit/$commit_sha"
local tag_url="$repository_url/tree/$tag"
Expand Down

0 comments on commit 11df205

Please sign in to comment.