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: fix GIT_DIFF in the docker workflow. #3201

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

fastfadingviolets
Copy link
Contributor

Description

It turns out the get-diff-action only works on push and pull_request events, and will report an empty diff otherwise. This makes it so that we only run nightly builds if there's been a commit in the last 24h. Builds from workflow_dispatch and releases are always triggered.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • Included the correct type prefix in the PR title
  • Added ! to the type prefix if API, client, or state breaking change (i.e., requires minor or major version bump)
  • Targeted the correct branch (see PR Targeting)
  • Provided a link to the relevant issue or specification
  • Followed the guidelines for building SDK modules
  • Included the necessary unit and integration tests
  • Added a changelog entry in .changelog (for details, see contributing guidelines)
  • Included comments for documenting Go code
  • Updated the relevant documentation or specification
  • Reviewed "Files changed" and left comments if necessary
  • Confirmed all CI checks have passed

It turns out the get-diff-action only works on `push` and `pull_request`
events, and will report an empty diff otherwise. This makes it so that
we only run nightly builds if there's been a commit in the last 24h.
Builds from workflow_dispatch and releases are always triggered.
@fastfadingviolets fastfadingviolets marked this pull request as ready for review July 12, 2024 14:44
Copy link
Contributor

@MSalopek MSalopek left a comment

Choose a reason for hiding this comment

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

LGTM

@sainoe sainoe self-requested a review July 15, 2024 09:11
@MSalopek MSalopek merged commit 9b91732 into cosmos:main Jul 15, 2024
14 checks passed
@fastfadingviolets fastfadingviolets deleted the docker-git-diff branch July 15, 2024 13:58
fastfadingviolets added a commit to fastfadingviolets/gaia that referenced this pull request Jul 16, 2024
It turns out the get-diff-action only works on `push` and `pull_request`
events, and will report an empty diff otherwise. This makes it so that
we only run nightly builds if there's been a commit in the last 24h.
Builds from workflow_dispatch and releases are always triggered.
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.

None yet

3 participants