Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ inputs:
description: 'Whether to send a comment under PR with the link to the generated build'
required: false
default: true
custom-ref:
description: 'Custom app reference for artifact naming'
required: false

outputs:
artifact-url:
Expand Down Expand Up @@ -282,6 +285,8 @@ runs:
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
IDENTIFIER="${{ github.event.pull_request.number }}"
elif [ -n "${{ inputs.custom-ref }}" ]; then
IDENTIFIER="${{ inputs.custom-ref }}"
else
IDENTIFIER=$(echo "$GITHUB_SHA" | cut -c1-7)
fi
Expand Down