Skip to content

Commit

Permalink
fix: [FX-4058] use proper sha for different event types (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaklygin authored Jul 27, 2023
1 parent bcfdee7 commit 4662ded
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/polite-colts-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'davinci-github-actions': patch
---

- fix sha for jira deployment gh action
6 changes: 3 additions & 3 deletions create-jira-deployment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ runs:
run: |
echo APP_NAME=$(echo "${{ github.repository }}" | cut -d'/' -f2) >> $GITHUB_OUTPUT
- id: branch
uses: xt0rted/[email protected]
- id: sha
uses: toptal/davinci-github-actions/get-workflow-sha@master

- name: Trigger `Create JIRA` deployment
uses: toptal/[email protected]
Expand All @@ -83,6 +83,6 @@ runs:
{
"appName": "${{ steps.repo.outputs.APP_NAME }}",
"envName": "${{ inputs.environment }}",
"sha": "${{ steps.branch.outputs.head_sha }}"
"sha": "${{ github.event.pull_request.head.sha || steps.sha.outputs.result }}"
}
job_timeout: '3600'

0 comments on commit 4662ded

Please sign in to comment.