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

Export deployment data to calling workflow #270

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ppkarwasz
Copy link
Contributor

@ppkarwasz ppkarwasz commented Oct 17, 2024

This adds two outputs to both the deploy-release-reusable and deploy-snapshot-reusable workflows:

  • project-version: contains the version of the deployed project.
  • nexus-url: contains the URL of the Nexus repository, where the artifacts were deployed.

This PR is based on the GitHub Using outputs from a reusable workflow documentation.

[It also fixes a small YAML syntax error, ignored by GitHub, but reported by IDEA]

This adds two outputs to both the `deploy-release-reusable` and `deploy-snapshot-reusable` workflows:

- `project-version`: contains the version of the deployed project.
- `project-repository-url`: contains the URL of the Nexus repository, where the artifacts were deployed.

[It also fixes a small YAML syntax error, ignored by GitHub, but reported by IDEA]
@ppkarwasz ppkarwasz requested a review from vy October 17, 2024 07:41
The version of the project is not necessary, since it should be hardcoded in the `pom.xml`.

We replace `project-repository-url` with `nexus-url` to be more coherent with the name of the environment variable.
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.

1 participant