Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Conversation

@matrei
Copy link
Contributor

@matrei matrei commented Feb 12, 2025

The snapshot docs publishing step had a faulty condition that prevented execution.
This commit removes the faulty condition along with cleaning up all other redundant step conditions.

The snapshot docs publishing step had a faulty condition that prevented execution.
This commit removes the faulty condition along with cleaning up all other redundant step conditions.
MAVEN_PUBLISH_PASSWORD: ${{ secrets.MAVEN_PUBLISH_PASSWORD }}
run: ./gradlew --no-build-cache publish
- name: "🔨 Build Docs"
id: docs
Copy link
Contributor

Choose a reason for hiding this comment

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

I usually see changes like if: success() on later steps for publish /docs. Is this workflow setup to fail fast / not continue on? If so, why do other projects have that check and we're removing all checks here?

Copy link
Contributor Author

@matrei matrei Feb 13, 2025

Choose a reason for hiding this comment

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

I think fail-fast applies to matrix jobs. When enabled, if any matrix job fails, all other matrix jobs are canceled immediately to save time and resources.

if: success() is the default behavior unless a previous step has continue-on-error: true. In typical cases, it is redundant because steps are sequential and stop on previous step failure by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If so, why do other projects have that check and we're removing all checks here?

IDK

@jdaugherty jdaugherty closed this Mar 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants