-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[github action] Is it possible to add the link to the build result in the GitHub action on PR page? #699
Comments
Hi, Could you clarify what link you mean exactly? The "build result" could refer to the GitHub Action job, the Chromatic build, or the built / published Storybook. We currently send 3 commit status updates to pull requests, each with a different Details link:
We don't post any PR comments like some other tools do. If you feel like this would be a valuable feature, could you elaborate on what you think this message should contain? |
Thanks for the reply. I just can't find any build result link from the result. Here is my action file. name: 'Chromatic'
on: push
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/install-packages
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
onlyChanged: true
traceChanged: true
Besides, there could be multiple builds in one PR. It would be easier to know which build is from which push with the message. |
+1 for this. I found a quick workaround that might help you @ronny1020:
- name: Deploy to Chromatic
id: chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- name: Publish Summary
run: echo -e "| Results | |\n| --- | --- |\n| Build Results | ${{steps.chromatic.outputs.buildUrl}} |\n| Storybook Preview | ${{steps.chromatic.outputs.storybookUrl}} |\n| Component Count | ${{steps.chromatic.outputs.componentCount}} |" >> $GITHUB_STEP_SUMMARY |
Is there any way to do this without |
Feature request
Is it possible to add the link to the build result in the GitHub action on the PR page? With the link, we can easier find the build result.
Proposed solution
Add a message with the link on the GitHub PR page.
Additional context
A message like this kind of message with the link or result.
The text was updated successfully, but these errors were encountered: