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

ci: Fix workflow failures in PRs due to slack notify step #588

Merged

Conversation

ykim-akamai
Copy link
Contributor

@ykim-akamai ykim-akamai commented Oct 7, 2024

📝 Description

Workflow have been failing due to secrets not being available to other forked branches due to ci.yml workflow running in untrusted mode. Hence only run slack notify on push to main branch

This will fix workflow failing in open PRs. E.g. https://github.com/linode/linodego/actions/runs/11218320749/job/31181851076?pr=576

✔️ How to Test

Refer to the checks in this PR, slack notify step should be excluded

📷 Preview

If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.

@ykim-akamai ykim-akamai added the repo-ci-improvement for improvements in the repository or CI workflow in the changelog. label Oct 7, 2024
@ykim-akamai ykim-akamai requested a review from a team as a code owner October 7, 2024 16:19
@ykim-akamai ykim-akamai requested review from jriddle-linode and ezilber-akamai and removed request for a team October 7, 2024 16:19
@ykim-akamai ykim-akamai marked this pull request as draft October 7, 2024 16:22
@ykim-akamai ykim-akamai marked this pull request as ready for review October 7, 2024 16:39
Copy link
Contributor

@ezilber-akamai ezilber-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ykim-akamai ykim-akamai merged commit 34f622c into linode:main Oct 7, 2024
5 checks passed
ezilber-akamai added a commit that referenced this pull request Oct 25, 2024
* Unit tests passing

* Remove all references to Resty

* Fixed some integration tests

* Fixed failing integration tests

* Fix lint

* Fixed request body not being logged

* Fixed issue where request body did not get reset for retry

* Fix lint

* Fixed issue with image uploads

* build(deps): bump golang.org/x/text from 0.18.0 to 0.19.0 (#587)

* build(deps): bump golang.org/x/text from 0.18.0 to 0.19.0

Bumps [golang.org/x/text](https://github.com/golang/text) from 0.18.0 to 0.19.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](golang/text@v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Ran make tidy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ezilber-akamai <ezilber@akamai.com>

* ci: Fix workflow failures in PRs due to slack notify step (#588)

* allow some vars to be shared

* add target branch

* remove target branch

* revert to push_request and only run slack notify when push to main

* Fixed intermittent error

* Addressed more PR comments

* Addressed more PR comments

* Addressed some more PR comments

* Added default values for retry times

* Updated body type in requestParams

* Addressed more PR comments

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Youjung Kim <126618609+ykim-1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repo-ci-improvement for improvements in the repository or CI workflow in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants