Compare commits
1 commit
afce81f97f
...
7d7a576f50
Author | SHA1 | Date | |
---|---|---|---|
7d7a576f50 |
2 changed files with 7 additions and 6 deletions
|
@ -91,10 +91,11 @@ runs:
|
||||||
if: inputs.comment-on-pr == 'true' && steps.pr-number.outputs.pr-number != ''
|
if: inputs.comment-on-pr == 'true' && steps.pr-number.outputs.pr-number != ''
|
||||||
env:
|
env:
|
||||||
ARTIFACT_NAME: ${{ inputs.artifact-name }}
|
ARTIFACT_NAME: ${{ inputs.artifact-name }}
|
||||||
PR_ID: ${{ steps.pr-number.outputs.pr-number }}
|
BASE_BRANCH: ${{ inputs.base-branch }}
|
||||||
COMMENT_ID: ${{ steps.find-comment.outputs.comment-id }}
|
COMMENT_ID: ${{ steps.find-comment.outputs.comment-id }}
|
||||||
DO_COMPARISON: ${{ inputs.do-comparison }}
|
DO_COMPARISON: ${{ inputs.do-comparison }}
|
||||||
BASE_BRANCH: ${{ inputs.base-branch }}
|
JOB_NAME: ${{ inputs.job-name }}
|
||||||
|
PR_ID: ${{ steps.pr-number.outputs.pr-number }}
|
||||||
run: |
|
run: |
|
||||||
. "$GITHUB_ACTION_PATH/scripts/utils.sh"
|
. "$GITHUB_ACTION_PATH/scripts/utils.sh"
|
||||||
|
|
||||||
|
|
|
@ -41,10 +41,8 @@ has_report() {
|
||||||
base_branch=${BASE_BRANCH:-$(default_branch)}
|
base_branch=${BASE_BRANCH:-$(default_branch)}
|
||||||
|
|
||||||
if in_private_repo; then
|
if in_private_repo; then
|
||||||
warn 'Detected that this is a private repo, retrieving the old report will probably fail'
|
warn 'Detected that this is a private repo cannot retrieve old report'
|
||||||
fi
|
elif [ "$JOB_NAME" ]; then
|
||||||
|
|
||||||
if ! in_private_repo && [ "$JOB_NAME" ]; then
|
|
||||||
url=$(base_report_url "$base_branch")
|
url=$(base_report_url "$base_branch")
|
||||||
|
|
||||||
log "Found previous run at: $url"
|
log "Found previous run at: $url"
|
||||||
|
@ -60,6 +58,8 @@ if ! in_private_repo && [ "$JOB_NAME" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
error "Failed to find previous report, expected at: $report_url"
|
error "Failed to find previous report, expected at: $report_url"
|
||||||
|
else
|
||||||
|
panic 'job-name is missing, therefore we cannot find the previous report'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
warn "Couldn't retrieve old report:
|
warn "Couldn't retrieve old report:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue