-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Details link doesn't seem to work #21
Comments
Based on this doc https://docs.github.com/en/rest/reference/checks#create-a-check-run
I don't think that |
Hi @stereobooster, I had the exact same problem and spent quite a while digging into this. I believe #18 is a duplicate of this issue. In the end, I ended up just creating a "Status" instead of "Check". The |
@mayank99 thanks a lot, yes it seems what I'm looking for. I will try it and report back and close the ticket. PS: I'm sorry for opening duplicate ticket. |
I tried following code, but it doesn't seem to work jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set preview status
uses: actions/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const { payload } = context;
const sha = payload.pull_request && payload.pull_request.head
? payload.pull_request.head.sha
: context.sha;
await github.repos.createStatus({
...context.repo,
sha,
state: "success",
target_url: `...`,
description: "Preview is ready!",
}); |
@stereobooster I followed @mayank99 suggestion and used the following action to set up a status check and a |
this what I end up doing |
Hi! First of all thank you for creating this action.
I'm trying to create check similar to Netlify
When I click details it opens tab with deployment preview of website.
I hoped that
details_url
of this action would do the trick, but insteaddetails
link opens...runs/2678826558?check_suite_focus=true
. By any chance do you know what can be the issue?The text was updated successfully, but these errors were encountered: