Skip to content
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

fix action link in slack alert #8540

Merged
merged 1 commit into from
Feb 3, 2023
Merged

fix action link in slack alert #8540

merged 1 commit into from
Feb 3, 2023

Conversation

sean1588
Copy link
Member

@sean1588 sean1588 commented Feb 3, 2023

There was a bug with the github action that is being used and there has been a PR open in that repo for a few weeks to fix it and looks like the action maintainer has not gotten around to addressing it. I went and forked the repo and applied the fix. I then rebuilt the action's docker image and published a new docker image with the fix for this to use. This PR just updates the action to reference the new docker image I published with the fix. We switch back to using the "official" action once they get around to addressing that PR.

The problem was that the action was coded to reference the workflow by a specific commit. The issue with that, is that often times when things are merged to master or pulled in from upstream, it kicks off multiple workflows that run against that same commit, so the link that was there did not know specifically which workflow failed, it only knew the commit sha it failed at. This fix now links to the specific workflow run that failed from that commit.

Here is a before and after of the URL that was being linked to:

before fix:
https://github.com/pulumi/docs/commit/b299b33f5a6277493020174e552c14ffd17bdc1c/checks

after fix
https://github.com/pulumi/docs/actions/runs/4087423781/attempts/1

This should resolve the issue now that we are referencing the specific run, though we won't know for real until it actually gets used in real life.

@sean1588 sean1588 requested review from susanev and zchase February 3, 2023 21:19
@github-actions
Copy link

github-actions bot commented Feb 3, 2023

Your site preview for commit 5648103 is ready! 🎉

http://pulumi-docs-origin-pr-8540-56481039.s3-website.us-west-2.amazonaws.com.

@sean1588 sean1588 merged commit 4acf5ff into master Feb 3, 2023
@sean1588 sean1588 deleted the sean/fix-alert-links branch February 3, 2023 21:55
@github-actions
Copy link

github-actions bot commented Feb 3, 2023

Site previews for this pull request have been removed. ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants