Skip to content

Commit 2177ac6

Browse files
authored
fix: allow custom-ref IDENTIFIER (#21)
* fix: allow custom-ref IDENTIFIER * docs: update readme with custom-ref
1 parent e23c3e0 commit 2177ac6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
| `keystore-path` | where the keystore should be placed | No | `release.keystore` |
6767
| `rock-build-extra-params` | Extra parameters for rock build:android | No | - |
6868
| `comment-bot` | Whether to comment PR with build link | No | `true` |
69+
| `custom-ref` | Custom app reference for artifact naming | No | - |
6970

7071
## Outputs
7172

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ inputs:
6464
description: 'Whether to send a comment under PR with the link to the generated build'
6565
required: false
6666
default: true
67+
custom-ref:
68+
description: 'Custom app reference for artifact naming'
69+
required: false
6770

6871
outputs:
6972
artifact-url:
@@ -282,6 +285,8 @@ runs:
282285
run: |
283286
if [ "${{ github.event_name }}" = "pull_request" ]; then
284287
IDENTIFIER="${{ github.event.pull_request.number }}"
288+
elif [ -n "${{ inputs.custom-ref }}" ]; then
289+
IDENTIFIER="${{ inputs.custom-ref }}"
285290
else
286291
IDENTIFIER=$(echo "$GITHUB_SHA" | cut -c1-7)
287292
fi

0 commit comments

Comments
 (0)