-
Notifications
You must be signed in to change notification settings - Fork 96
fix: fix PR preview delete #110
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
base: main
Are you sure you want to change the base?
Conversation
|
✅ Preview binaries are ready! To test with modules: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need two separate workflows here?
Is this all to get the PR number in the closet PR event?
| - name: Download cleanup signal | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: cleanup-signal | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| run-id: ${{ github.event.workflow_run.id }} | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain the significance of this artifact?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnstcn gh release create/delete/update commands don't work from a PR from a fork as the GITHUB_TOKEN doesn't have enough access.
eg: Check the second step here
https://github.com/coder/agentapi/actions/runs/18270399274/job/52011769517
That's why I had to break this into two parts (similar to the pr release preview).
So now, the signal is created when a PR is closed and then the actual release operations are done on the coder/agentapi repo.
No description provided.