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

Remove ignored paths #1623

Merged
merged 5 commits into from
Mar 27, 2021
Merged

Remove ignored paths #1623

merged 5 commits into from
Mar 27, 2021

Conversation

jneira
Copy link
Member

@jneira jneira commented Mar 25, 2021

@jneira jneira requested review from Ailrun and berberman March 25, 2021 22:09
@@ -86,6 +90,8 @@ jobs:
path: ~/.cabal/cabal.tar.gz

bench-example:
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
needs: [bench-init]
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to have two needs keys? I thought yaml is just more elaborated json...

Copy link
Collaborator

Choose a reason for hiding this comment

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

In the case that bench-init is skipped, is bench-example still reachable if we don't add this?

Copy link
Member

Choose a reason for hiding this comment

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

It will skip its computation but from the GitHub's point of view I think the jot itself is not skipped, and will execute following jobs...

Copy link
Member Author

@jneira jneira Mar 26, 2021

Choose a reason for hiding this comment

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

Even if the action lets you duplicate keys it is better to have only one, will change

EDIT: And it is not valid:

.github/workflows/bench.yml#L95
The workflow is not valid. .github/workflows/bench.yml (Line: 95, Col: 5): 'needs' is already defined

Copy link
Member Author

@jneira jneira left a comment

Choose a reason for hiding this comment

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

Remove duplicate needs

.github/workflows/bench.yml Outdated Show resolved Hide resolved
.github/workflows/bench.yml Outdated Show resolved Hide resolved
Copy link
Member

@Ailrun Ailrun left a comment

Choose a reason for hiding this comment

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

LGTM :)

@jneira jneira added the merge me Label to trigger pull request merge label Mar 26, 2021
@berberman berberman merged commit c5f5d20 into haskell:master Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants