diff --git a/.github/scripts/generate-changelog.sh b/.github/scripts/generate-changelog.sh index 15e837e125..f736559d71 100755 --- a/.github/scripts/generate-changelog.sh +++ b/.github/scripts/generate-changelog.sh @@ -18,6 +18,12 @@ RECONCILIATION_VERSION=$(extract_version "RECONCILIATION_VERSION") GATEWAY_VERSION=$(extract_version "GATEWAY_VERSION") CONNECTIVITY_VERSION=$(extract_version "CONNECTIVITY_VERSION") +if [[ "$LEDGER_VERSION" == v* ]]; then + LEDGER_LINK="[Release notes](https://github.com/formancehq/ledger/releases/tag/${LEDGER_VERSION})" +else + LEDGER_LINK="[Source](https://github.com/formancehq/ledger/tree/${LEDGER_VERSION})" +fi + # Connectivity can be pinned to a branch until its releases publish an OpenAPI asset. if [[ "$CONNECTIVITY_VERSION" == v* ]]; then CONNECTIVITY_LINK="[Release notes](https://github.com/formancehq/connectivity/releases/tag/${CONNECTIVITY_VERSION})" @@ -30,7 +36,7 @@ fi echo "" echo "| Component | Version | Changelog |" echo "|-----------|---------|-----------|" - echo "| Ledger | \`${LEDGER_VERSION}\` | [Release notes](https://github.com/formancehq/ledger/releases/tag/${LEDGER_VERSION}) |" + echo "| Ledger | \`${LEDGER_VERSION}\` | ${LEDGER_LINK} |" echo "| Payments | \`${PAYMENTS_VERSION}\` | [Release notes](https://github.com/formancehq/payments/releases/tag/${PAYMENTS_VERSION}) |" echo "| Wallets | \`${WALLETS_VERSION}\` | [Release notes](https://github.com/formancehq/wallets/releases/tag/${WALLETS_VERSION}) |" echo "| Webhooks | \`${WEBHOOKS_VERSION}\` | [Release notes](https://github.com/formancehq/webhooks/releases/tag/${WEBHOOKS_VERSION}) |" diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c16179c706..01c9228a28 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.805.0 +speakeasyVersion: 1.806.0 sources: stacks-source: sourceNamespace: stacks-source - sourceRevisionDigest: sha256:fba801496873ebea55167ee39b289c4b9a84de63e907ee88c660e2353d065860 - sourceBlobDigest: sha256:161ec02ee4dc73636b93aa44f4226b397c1ca2dd784b9574213f4259626a90eb + sourceRevisionDigest: sha256:6c6af96e77dda871734a75eeae83e7406377f4b9b2ea28e519e3605f5deb686b + sourceBlobDigest: sha256:0d867569ba113509e0b316a00ec1947889fbcae62a69d73e9c1fdc60a55147e1 tags: - latest - SDK_VERSION diff --git a/Justfile b/Justfile index e08a98abcb..03e6d3700b 100644 --- a/Justfile +++ b/Justfile @@ -1,5 +1,5 @@ # Component versions -LEDGER_VERSION := "v3.0.0-rc.2" +LEDGER_VERSION := "main" LEDGER_V2_VERSION := "v2.4.17" PAYMENTS_VERSION := "v3.4.9" WALLETS_VERSION := "v2.2.2" @@ -16,7 +16,11 @@ CONNECTIVITY_VERSION := "main" download-specs: mkdir -p components gh api -H "Accept: application/vnd.github.raw+json" "repos/formancehq/connectivity/contents/misc/connectivity-api/openapi.yaml?ref={{ CONNECTIVITY_VERSION }}" > components/connectivity.openapi.yaml - wget -q https://github.com/formancehq/ledger/releases/download/{{ LEDGER_VERSION }}/openapi.yml -O components/ledger.openapi.yaml + if [ "{{ LEDGER_VERSION }}" = "main" ]; then \ + gh api -H "Accept: application/vnd.github.raw+json" "repos/formancehq/ledger/contents/openapi.yml?ref={{ LEDGER_VERSION }}" > components/ledger.openapi.yaml; \ + else \ + wget -q https://github.com/formancehq/ledger/releases/download/{{ LEDGER_VERSION }}/openapi.yml -O components/ledger.openapi.yaml; \ + fi wget -q https://github.com/formancehq/ledger/releases/download/{{ LEDGER_V2_VERSION }}/openapi.yaml -O components/ledger-v2.openapi.yaml wget -q https://github.com/formancehq/payments/releases/download/{{ PAYMENTS_VERSION }}/openapi.yaml -O components/payments.openapi.yaml gh api -H "Accept: application/vnd.github.raw+json" "repos/formancehq/gateway/contents/openapi.yaml?ref={{ GATEWAY_VERSION }}" > components/gateway.openapi.yaml