Skip to content

Commit

Permalink
GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kadraman committed Nov 28, 2023
1 parent 3a7556d commit cd0fb98
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/actions/fortify-app-and-release-name/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,21 @@ runs:
- name: Git branch name
id: git-branch-name
uses: EthanSK/git-branch-name-action@v1
- name: Check if PR
id: PR
uses: 8BitJonny/[email protected]
- name: Set Fortify Release Name
id: fortify-release-name
shell: bash
run: |
echo "Git branch name: ${GIT_BRANCH_NAME}"
echo "::debug::release_name=${GIT_BRANCH_NAME}"
echo "release_name=${GIT_BRANCH_NAME}" >> $GITHUB_OUTPUT
if [[ $IS_PR == true ]]; then
echo "::debug::release_name=${GIT_BRANCH_NAME}#PR_NUMBER"
echo "release_name=${GIT_BRANCH_NAME}#PR_NUMBER" >> $GITHUB_OUTPUT
else
echo "::debug::release_name=${GIT_BRANCH_NAME}"
echo "release_name=${GIT_BRANCH_NAME}" >> $GITHUB_OUTPUT
fi
env:
IS_PR: ${{ steps.PR.outputs.pr_found }}
PR_NUMBER: ${{ steps.PR.outputs.number }}
PR_RELEASE_NAME: ${{ format

0 comments on commit cd0fb98

Please sign in to comment.