Skip to content

Commit a5d55f1

Browse files
committed
Multi-repo SDK release workflow with skip_publish option
1 parent d1fa722 commit a5d55f1

4 files changed

Lines changed: 7 additions & 329 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ on:
3232
description: 'Dry run (generate and test, but do not push)'
3333
type: boolean
3434
default: false
35+
skip_publish:
36+
description: 'Push to SDK repos but skip publishing (no version bump)'
37+
type: boolean
38+
default: false
3539

3640
env:
3741
CARGO_TERM_COLOR: always
@@ -54,6 +58,7 @@ jobs:
5458
token: ${{ secrets.GITHUB_TOKEN }}
5559

5660
- name: Bump version
61+
if: ${{ !inputs.skip_publish }}
5762
run: |
5863
chmod +x ./scripts/version.sh
5964
./scripts/version.sh ${{ inputs.sdk }} ${{ inputs.bump }}
@@ -80,7 +85,7 @@ jobs:
8085
fi
8186
8287
- name: Commit version bump
83-
if: ${{ !inputs.dry_run }}
88+
if: ${{ !inputs.dry_run && !inputs.skip_publish }}
8489
run: |
8590
git config user.name "github-actions[bot]"
8691
git config user.email "github-actions[bot]@users.noreply.github.com"
@@ -105,6 +110,7 @@ jobs:
105110
echo "| SDK | ${{ inputs.sdk }} |" >> $GITHUB_STEP_SUMMARY
106111
echo "| Bump | ${{ inputs.bump }} |" >> $GITHUB_STEP_SUMMARY
107112
echo "| Dry Run | ${{ inputs.dry_run }} |" >> $GITHUB_STEP_SUMMARY
113+
echo "| Skip Publish | ${{ inputs.skip_publish }} |" >> $GITHUB_STEP_SUMMARY
108114
echo "" >> $GITHUB_STEP_SUMMARY
109115
echo "### Versions" >> $GITHUB_STEP_SUMMARY
110116
echo "- Python: \`${{ steps.versions.outputs.python }}\`" >> $GITHUB_STEP_SUMMARY

scripts/README.md

Lines changed: 0 additions & 150 deletions
This file was deleted.

scripts/bump-version.sh

Lines changed: 0 additions & 111 deletions
This file was deleted.

scripts/publish-typescript.sh

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)