Skip to content

Commit 7ed8919

Browse files
committed
feat/CONN-1273-release-stubs: re-emit the release stubs from current main so they carry the PUBLISH_PRERELEASE plumbing
- bank_feeds_release.yaml - dispatch payload gains the prerelease field read from the PUBLISH_PRERELEASE Actions variable, plus the comment explaining how to use it - lending_release.yaml - same - platform_release.yaml - same - sync_for_expenses_release.yaml - same - sync_for_payables_release.yaml - same
1 parent b761e5b commit 7ed8919

5 files changed

Lines changed: 35 additions & 10 deletions

File tree

.github/workflows/bank_feeds_release.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
# Codat SDK Codegen - no check has been dropped, they just moved. This stub
55
# only forwards the release trigger there, authenticated with a short-lived
66
# token minted from the GitHub App in the PUBLISH_TRIGGER_APP_* secrets.
7+
#
8+
# Set the PUBLISH_PRERELEASE Actions variable on this repo to rc1 to make the
9+
# next merge publish <version>rc1 rather than <version>. A plain
10+
# `pip install` skips pre-releases, so only people who ask for the rc by name
11+
# get it. Clear the variable once the real version has been promoted.
712
name: Release Bank Feeds library
813
'on':
914
push:
@@ -40,5 +45,5 @@ jobs:
4045
-H "Accept: application/vnd.github+json" \
4146
-H "Authorization: Bearer ${{ steps.app_token.outputs.token }}" \
4247
https://api.github.com/repos/codat-internal/sdk-codegen/dispatches \
43-
-d '{"event_type": "publish-python", "client_payload": {"product": "bank-feeds", "sha": "${{ github.sha }}", "sdk_repo": "${{ github.repository }}"}}'
44-
echo "publish-python dispatch sent to codat-internal/sdk-codegen for bank-feeds @ ${{ github.sha }}"
48+
-d '{"event_type": "publish-python", "client_payload": {"product": "bank-feeds", "sha": "${{ github.sha }}", "sdk_repo": "${{ github.repository }}", "prerelease": "${{ vars.PUBLISH_PRERELEASE }}"}}'
49+
echo "publish-python dispatch sent to codat-internal/sdk-codegen for bank-feeds @ ${{ github.sha }}${{ vars.PUBLISH_PRERELEASE && format(' as a {0} pre-release', vars.PUBLISH_PRERELEASE) || '' }}"

.github/workflows/lending_release.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
# Codat SDK Codegen - no check has been dropped, they just moved. This stub
55
# only forwards the release trigger there, authenticated with a short-lived
66
# token minted from the GitHub App in the PUBLISH_TRIGGER_APP_* secrets.
7+
#
8+
# Set the PUBLISH_PRERELEASE Actions variable on this repo to rc1 to make the
9+
# next merge publish <version>rc1 rather than <version>. A plain
10+
# `pip install` skips pre-releases, so only people who ask for the rc by name
11+
# get it. Clear the variable once the real version has been promoted.
712
name: Release Lending library
813
'on':
914
push:
@@ -40,5 +45,5 @@ jobs:
4045
-H "Accept: application/vnd.github+json" \
4146
-H "Authorization: Bearer ${{ steps.app_token.outputs.token }}" \
4247
https://api.github.com/repos/codat-internal/sdk-codegen/dispatches \
43-
-d '{"event_type": "publish-python", "client_payload": {"product": "lending", "sha": "${{ github.sha }}", "sdk_repo": "${{ github.repository }}"}}'
44-
echo "publish-python dispatch sent to codat-internal/sdk-codegen for lending @ ${{ github.sha }}"
48+
-d '{"event_type": "publish-python", "client_payload": {"product": "lending", "sha": "${{ github.sha }}", "sdk_repo": "${{ github.repository }}", "prerelease": "${{ vars.PUBLISH_PRERELEASE }}"}}'
49+
echo "publish-python dispatch sent to codat-internal/sdk-codegen for lending @ ${{ github.sha }}${{ vars.PUBLISH_PRERELEASE && format(' as a {0} pre-release', vars.PUBLISH_PRERELEASE) || '' }}"

.github/workflows/platform_release.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
# Codat SDK Codegen - no check has been dropped, they just moved. This stub
55
# only forwards the release trigger there, authenticated with a short-lived
66
# token minted from the GitHub App in the PUBLISH_TRIGGER_APP_* secrets.
7+
#
8+
# Set the PUBLISH_PRERELEASE Actions variable on this repo to rc1 to make the
9+
# next merge publish <version>rc1 rather than <version>. A plain
10+
# `pip install` skips pre-releases, so only people who ask for the rc by name
11+
# get it. Clear the variable once the real version has been promoted.
712
name: Release Platform library
813
'on':
914
push:
@@ -40,5 +45,5 @@ jobs:
4045
-H "Accept: application/vnd.github+json" \
4146
-H "Authorization: Bearer ${{ steps.app_token.outputs.token }}" \
4247
https://api.github.com/repos/codat-internal/sdk-codegen/dispatches \
43-
-d '{"event_type": "publish-python", "client_payload": {"product": "platform", "sha": "${{ github.sha }}", "sdk_repo": "${{ github.repository }}"}}'
44-
echo "publish-python dispatch sent to codat-internal/sdk-codegen for platform @ ${{ github.sha }}"
48+
-d '{"event_type": "publish-python", "client_payload": {"product": "platform", "sha": "${{ github.sha }}", "sdk_repo": "${{ github.repository }}", "prerelease": "${{ vars.PUBLISH_PRERELEASE }}"}}'
49+
echo "publish-python dispatch sent to codat-internal/sdk-codegen for platform @ ${{ github.sha }}${{ vars.PUBLISH_PRERELEASE && format(' as a {0} pre-release', vars.PUBLISH_PRERELEASE) || '' }}"

.github/workflows/sync_for_expenses_release.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
# Codat SDK Codegen - no check has been dropped, they just moved. This stub
55
# only forwards the release trigger there, authenticated with a short-lived
66
# token minted from the GitHub App in the PUBLISH_TRIGGER_APP_* secrets.
7+
#
8+
# Set the PUBLISH_PRERELEASE Actions variable on this repo to rc1 to make the
9+
# next merge publish <version>rc1 rather than <version>. A plain
10+
# `pip install` skips pre-releases, so only people who ask for the rc by name
11+
# get it. Clear the variable once the real version has been promoted.
712
name: Release Sync for Expenses library
813
'on':
914
push:
@@ -40,5 +45,5 @@ jobs:
4045
-H "Accept: application/vnd.github+json" \
4146
-H "Authorization: Bearer ${{ steps.app_token.outputs.token }}" \
4247
https://api.github.com/repos/codat-internal/sdk-codegen/dispatches \
43-
-d '{"event_type": "publish-python", "client_payload": {"product": "sync-for-expenses", "sha": "${{ github.sha }}", "sdk_repo": "${{ github.repository }}"}}'
44-
echo "publish-python dispatch sent to codat-internal/sdk-codegen for sync-for-expenses @ ${{ github.sha }}"
48+
-d '{"event_type": "publish-python", "client_payload": {"product": "sync-for-expenses", "sha": "${{ github.sha }}", "sdk_repo": "${{ github.repository }}", "prerelease": "${{ vars.PUBLISH_PRERELEASE }}"}}'
49+
echo "publish-python dispatch sent to codat-internal/sdk-codegen for sync-for-expenses @ ${{ github.sha }}${{ vars.PUBLISH_PRERELEASE && format(' as a {0} pre-release', vars.PUBLISH_PRERELEASE) || '' }}"

.github/workflows/sync_for_payables_release.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
# Codat SDK Codegen - no check has been dropped, they just moved. This stub
55
# only forwards the release trigger there, authenticated with a short-lived
66
# token minted from the GitHub App in the PUBLISH_TRIGGER_APP_* secrets.
7+
#
8+
# Set the PUBLISH_PRERELEASE Actions variable on this repo to rc1 to make the
9+
# next merge publish <version>rc1 rather than <version>. A plain
10+
# `pip install` skips pre-releases, so only people who ask for the rc by name
11+
# get it. Clear the variable once the real version has been promoted.
712
name: Release Sync for Payables library
813
'on':
914
push:
@@ -40,5 +45,5 @@ jobs:
4045
-H "Accept: application/vnd.github+json" \
4146
-H "Authorization: Bearer ${{ steps.app_token.outputs.token }}" \
4247
https://api.github.com/repos/codat-internal/sdk-codegen/dispatches \
43-
-d '{"event_type": "publish-python", "client_payload": {"product": "sync-for-payables", "sha": "${{ github.sha }}", "sdk_repo": "${{ github.repository }}"}}'
44-
echo "publish-python dispatch sent to codat-internal/sdk-codegen for sync-for-payables @ ${{ github.sha }}"
48+
-d '{"event_type": "publish-python", "client_payload": {"product": "sync-for-payables", "sha": "${{ github.sha }}", "sdk_repo": "${{ github.repository }}", "prerelease": "${{ vars.PUBLISH_PRERELEASE }}"}}'
49+
echo "publish-python dispatch sent to codat-internal/sdk-codegen for sync-for-payables @ ${{ github.sha }}${{ vars.PUBLISH_PRERELEASE && format(' as a {0} pre-release', vars.PUBLISH_PRERELEASE) || '' }}"

0 commit comments

Comments
 (0)