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: Simplify detect_jobs_to_run output (and related if) #4307

Merged
merged 15 commits into from
Nov 28, 2023
Merged

Conversation

janpio
Copy link
Contributor

@janpio janpio commented Nov 26, 2023

Checking the object was always a bit awkward, so I changed it to just write an array of the needed jobs instead of all jobs with true/false. I think that simplified the if a bit.

@janpio janpio self-assigned this Nov 26, 2023
@janpio
Copy link
Contributor Author

janpio commented Nov 26, 2023

Original approach of making it fully dynamic does not work because of https://docs.github.com/en/actions/learn-github-actions/contexts#github-context:~:text=the%20current%20job.-,Note%3A%20This%20context%20property%20is%20set%20by%20the%20Actions%20runner%2C%20and%20is%20only%20available%20within%20the%20execution%20steps%20of%20a%20job.%20Otherwise%2C%20the%20value%20of%20this%20property%20will%20be%20null.,-github.path

Note: This context property is set by the Actions runner, and is only available within the execution steps of a job. Otherwise, the value of this property will be null.

@janpio janpio closed this Nov 26, 2023
@janpio janpio reopened this Nov 26, 2023
.github/workflows/test.yaml Outdated Show resolved Hide resolved
.github/workflows/test.yaml Outdated Show resolved Hide resolved
@janpio janpio changed the title ci: Dynamically detect job name in if for detect_jobs_to_run usage ci: Change if for detect_jobs_to_run result Nov 27, 2023
@janpio janpio changed the title ci: Change if for detect_jobs_to_run result ci: Simplify detect_jobs_to_run output (and related if) Nov 27, 2023
@janpio janpio marked this pull request as ready for review November 27, 2023 21:53
Copy link
Contributor

@Jolg42 Jolg42 left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks!

@Jolg42 Jolg42 merged commit 14d5186 into dev Nov 28, 2023
270 checks passed
@Jolg42 Jolg42 deleted the janpio-patch-5 branch November 28, 2023 10:03
@Jolg42
Copy link
Contributor

Jolg42 commented Nov 28, 2023

Note: I was curious to check and everything looks good in this PR #4315

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