Skip to content

[WIP]: turn eval and nixpkgs-vet into reusable workflow#362471

Closed
JohnRTitor wants to merge 1 commit intoNixOS:masterfrom
JohnRTitor:ci-merge-commit
Closed

[WIP]: turn eval and nixpkgs-vet into reusable workflow#362471
JohnRTitor wants to merge 1 commit intoNixOS:masterfrom
JohnRTitor:ci-merge-commit

Conversation

@JohnRTitor
Copy link
Member

@JohnRTitor JohnRTitor commented Dec 6, 2024

As proposed in #361494 (comment), this will reduce the noise caused by having separate get-merge-commit workflow calls.

Can be tested in JohnRTitor#2

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
@JohnRTitor JohnRTitor requested a review from infinisil December 6, 2024 15:56
@github-actions github-actions bot added 6.topic: policy discussion Discuss policies to work in and around Nixpkgs 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions labels Dec 6, 2024
Comment on lines +24 to +35
if: |
github.event_name == 'pull_request_target' ||
(
github.event_name == 'push' && (
startsWith(github.ref, 'refs/heads/master') ||
startsWith(github.ref, 'refs/heads/staging') ||
startsWith(github.ref, 'refs/heads/release-') ||
startsWith(github.ref, 'refs/heads/staging-') ||
github.ref == 'refs/heads/haskell-updates' ||
github.ref == 'refs/heads/python-updates'
)
)
Copy link
Member Author

Choose a reason for hiding this comment

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

This is really ugly. Humm, and eval seems to get skipped?

@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Dec 6, 2024
eval:
uses: ./.github/workflows/eval.yml
needs: get-merge-commit
if: |
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if: |
if: >

I hope it's not this, but it's the only thing I can think of right now. This will convert all newlines to spaces (see https://yaml-multiline.info/)

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Dec 31, 2024
@JohnRTitor JohnRTitor closed this Jan 7, 2025
@JohnRTitor JohnRTitor deleted the ci-merge-commit branch January 7, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 6.topic: policy discussion Discuss policies to work in and around Nixpkgs 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants