Workflows fixes and improvements (#1398)
This commit is contained in:
8
.github/workflows/pr-render-test-result.yml
vendored
8
.github/workflows/pr-render-test-result.yml
vendored
@@ -13,14 +13,14 @@ on:
|
||||
jobs:
|
||||
upload-render-test-result:
|
||||
runs-on: ubuntu-22.04
|
||||
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure'
|
||||
if: github.event.workflow_run.event == 'pull_request'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: ./.github/actions/download-workflow-run-artifact
|
||||
with:
|
||||
artifact-name: render-test-result
|
||||
expect-files: "./pr_number, metrics/linux-gcc8-release-style.html"
|
||||
expect-files: "metrics/linux-gcc8-release-style.html"
|
||||
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v2
|
||||
@@ -36,12 +36,10 @@ jobs:
|
||||
s3://maplibre-native-test-artifacts/${{ github.run_id }}-linux-gcc8-release-style.html \
|
||||
--expires "$(date -d '+30 days' --utc +'%Y-%m-%dT%H:%M:%SZ')"
|
||||
|
||||
- run: echo pr_number="$(cat ./pr_number)" >> "$GITHUB_ENV"
|
||||
|
||||
- name: 'Leave comment on PR with test results'
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
header: render-test-result
|
||||
number: ${{ env.pr_number }}
|
||||
number: ${{ github.event.workflow_run.pull_requests[0].number }}
|
||||
message: |
|
||||
Render test results at https://maplibre-native-test-artifacts.s3.eu-central-1.amazonaws.com/${{ github.run_id }}-linux-gcc8-release-style.html
|
||||
|
||||
Reference in New Issue
Block a user