diff --git a/README.md b/README.md index dd5b4f0..94885de 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yml b/action.yml index c0a5420..3228ac8 100644 --- a/action.yml +++ b/action.yml @@ -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: @@ -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