Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
| `keystore-path` | where the keystore should be placed | No | `release.keystore` |
| `rock-build-extra-params` | Extra parameters for rock build:android | No | - |
| `comment-bot` | Whether to comment PR with build link | No | `true` |
| `custom-ref` | Custom app reference for artifact naming | No | - |

## Outputs

Expand Down
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