Skip to content

Commit

Permalink
ci: 2 cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezhik Kyzyl-ool committed Apr 22, 2024
1 parent ecde98d commit d5a84a7
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,17 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
- name: Download Artifacts from another workflow
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
run_id: ${{ github.event.workflow_run.id }}
if: >
github.event.workflow_run.conclusion == 'success'
- name: Download Artifacts from current workflow
uses: actions/download-artifact@v3
if: >
github.event.workflow_run.conclusion == null
- name: Extract PR Number
id: pr
run: echo "::set-output name=id::$(<pr/pr-id.txt)"
Expand All @@ -57,13 +66,13 @@ jobs:
uses: gravity-ui/preview-upload-to-s3-action@v1
with:
src-path: static
dest-path: /uikit/pulls/${{ steps.pr.outputs.id }}/
s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }}
s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }}
dest-path: /${{ inputs.project }}/pulls/${{ steps.pr.outputs.id }}/
s3-key-id: ${{ inputs.s3-key-id }}
s3-secret-key: ${{ inputs.s3-secret-key }}
- name: Create Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ inputs.github-token }}
number: ${{ steps.pr.outputs.id }}
message: '[Preview](https://preview.gravity-ui.com/${{ inputs.project }}/${{ steps.pr.outputs.id }}/) is ready.'
storybook-tests:
Expand Down

0 comments on commit d5a84a7

Please sign in to comment.