Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Jan 17, 2025
1 parent cdb238b commit 98d7316
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ jobs:

- name: Publish storybook to Google Cloud
working-directory: ui
if: github.event.pull_request.number
run: |
gsutil -m rsync -d -r storybook-static/storybook gs://internal-kestra-host/${{ format('{0}/{1}', github.repository, github.ref_name) }}
gsutil -m rsync -d -r storybook-static/storybook gs://internal-kestra-host/${{ format('{0}/{1}', github.repository, github.head_ref) }}
# Comment or update comment on the PR
- name: Create a comment on the Pull Request
Expand All @@ -51,5 +52,22 @@ jobs:
with:
message: |
Storybook published on ${{ github.event.repository.updated_at }}
https://internal.dev.kestra.io/${{ github.event.repository.name }}/${{ github.ref_name }}/storybook
https://internal.dev.kestra.io/${{ github.event.repository.name }}/${{ github.head_ref }}/storybook
comment-tag: 'storybook'

- name: Publish storybook to Google Cloud
working-directory: ui
if: !github.event.pull_request.number
run: |
gsutil -m rsync -d -r storybook-static/storybook gs://internal-kestra-host/${{ format('{0}/{1}', github.repository, github.ref_name) }}
- name: Create commit comment
uses: peter-evans/commit-comment@v3
if: !github.event.pull_request.number
with:
body: |
Storybook published on ${{ github.event.repository.updated_at }}
https://internal.dev.kestra.io/ui-libs/${{ github.ref_name }}/storybook
reactions: 'hooray'

0 comments on commit 98d7316

Please sign in to comment.