Skip to content

Commit

Permalink
Update chromatic PR action to have access to Job outputs (#21224)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-briscoe committed Aug 26, 2022
1 parent 092460a commit e2ab966
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/chromatic-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ jobs:
chromatic-deployment:
# Operating System
runs-on: ubuntu-latest
# define outputs that can be used in the storybook-link-comment job
outputs:
storybookUrl: ${{ steps.chromatic-deploy.outputs.storybookUrl }}
buildUrl: ${{ steps.chromatic-deploy.outputs.buildUrl }}
# Job steps
steps:
- id: chromatic-deploy
- uses: actions/checkout@v1
- name: Install dependencies
run: npm ci
Expand Down Expand Up @@ -76,5 +81,5 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Storybook has completed and can be viewed at ${{ needs.chromatic-deployment.outputs.storybookUrl }}. Chromatic visual test results can be viewed at ${{ needs.chromatic-deployment.outputs.buildUrl }} '
body: 'Storybook has completed and can be viewed at ${{ needs.chromatic-deployment.outputs.storybookUrl }} Chromatic visual test results can be viewed at ${{ needs.chromatic-deployment.outputs.buildUrl }}'
})

0 comments on commit e2ab966

Please sign in to comment.