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

Release ci #102

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Release ci #102

wants to merge 1 commit into from

Conversation

joajfreitas
Copy link
Collaborator

No description provided.

@joajfreitas joajfreitas self-assigned this Aug 22, 2024
@joajfreitas joajfreitas force-pushed the release_ci branch 3 times, most recently from 4454c8a to e67c8cf Compare August 22, 2024 17:35
@joajfreitas
Copy link
Collaborator Author

Possibly dependent on #103

Comment on lines +22 to +26
cargo metadata --no-deps --format-version 1 | jq -r '"name=" + .packages[0].name' | tee -a $GITHUB_OUTPUT
cargo metadata --no-deps --format-version 1 | jq -r '"version=" + .packages[0].version' | tee -a $GITHUB_OUTPUT
cargo metadata --no-deps --format-version 1 | jq -r '"maintainer=" + .packages[0].authors[0]' | tee -a $GITHUB_OUTPUT
cargo metadata --no-deps --format-version 1 | jq -r '"homepage=" + .packages[0].homepage' | tee -a $GITHUB_OUTPUT
cargo metadata --no-deps --format-version 1 | jq -r '"msrv=" + .packages[0].rust_version' | tee -a $GITHUB_OUTPUT
Copy link
Collaborator

@diogotito diogotito Aug 22, 2024

Choose a reason for hiding this comment

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

cargo metadata --no-deps --format-version 1 | jq -r '
  .packages[0]
    | { name, version, maintainer: .authors[0], homepage, msrv: .rust_version }
    | to_entries[] | "\(.key)=\(.value)"
' >> $GITHUB_OUTPUT

Copy link
Collaborator

Choose a reason for hiding this comment

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

cargo metadata --no-deps --format-version 1 | jq --raw-output >>$GITHUB_OUTPUT '
  .packages[] | select(.name == "fpt") |
    "name="       + .name,
    "version="    + .version,
    "maintainer=" + .authors[0],
    "homepage="   + .homepage,
    "msrv="       + .rust_version
'

@joajfreitas joajfreitas mentioned this pull request Aug 26, 2024
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