Skip to content

Commit fcfa3e7

Browse files
committed
fix: upload
1 parent 80cd787 commit fcfa3e7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/pr-playwright-report.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ jobs:
1212
if: github.event.workflow_run.event == 'pull_request'
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Set PR Number
16-
id: pr
17-
run: echo "PR_NUMBER=${{ github.event.workflow_run.pull_requests[0].number }}" >> $GITHUB_ENV
18-
shell: bash
1915
- name: Download Artifacts
2016
uses: actions/download-artifact@v4
2117
with:
2218
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
2319
run_id: ${{ github.event.workflow_run.id }}
20+
- name: Extract PR Number
21+
id: pr
22+
run: echo "::set-output name=id::$(<pr/pr-id.txt)"
23+
shell: bash
2424
- name: Upload to S3
2525
env:
2626
AWS_ACCESS_KEY_ID: ${{ secrets.STORYBOOK_S3_KEY_ID }}
2727
AWS_SECRET_ACCESS_KEY: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}
2828
AWS_DEFAULT_REGION: ru-central1
2929
AWS_EC2_METADATA_DISABLED: true
30-
run: aws s3 cp playwright-report s3://playwright-reports/dynamic-forms/pulls/${{ env.PR_NUMBER }}/ --endpoint-url=https://storage.yandexcloud.net --recursive
30+
run: aws s3 cp playwright-report s3://playwright-reports/dynamic-forms/pulls/${{ steps.pr.outputs.id }}/ --endpoint-url=https://storage.yandexcloud.net --recursive
3131
shell: bash
3232
- name: Create Comment
3333
uses: marocchino/sticky-pull-request-comment@v2
3434
with:
3535
GITHUB_TOKEN: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
36-
number: ${{ env.PR_NUMBER }}
36+
number: ${{ steps.pr.outputs.id }}
3737
header: playwright test
38-
message: '[Playwright Test Component](https://storage.yandexcloud.net/playwright-reports/dynamic-forms/pulls/${{ env.PR_NUMBER }}/index.html) is ready.'
38+
message: '[Playwright Test Component](https://storage.yandexcloud.net/playwright-reports/dynamic-forms/pulls/${{ steps.pr.outputs.id }}/index.html) is ready.'

0 commit comments

Comments
 (0)