Skip to content

Commit a2b93f6

Browse files
authored
Merge pull request #1243 from tradingstrategy-ai/getting-started-dispatch
Trigger getting-started tests on successful release build
2 parents f6107bb + c080ed0 commit a2b93f6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/docker.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,16 @@ jobs:
5050
GIT_VERSION_TAG=${{ env.RELEASE_VERSION }}
5151
GIT_COMMIT_MESSAGE=${{ github.event.head_commit.message }}
5252
GIT_VERSION_HASH=${{ github.sha }}
53+
- name: Trigger getting-started tests
54+
# If build was successful and this is a release tag, dispatch a trade-executor-released
55+
# event, which is used as a workflow trigger in getting-started text.yml workflow.
56+
if: success() && github.event_name == 'push' && contains(github.ref, 'refs/tags/v')
57+
uses: peter-evans/repository-dispatch@v3
58+
with:
59+
# NOTE: The GETTING_STARTED_DISPATCH PAT will expire on 2026-09-16.
60+
# Generate a new fine-grained PAT with the following permissions on getting-started repo:
61+
# contents: read & write; metadata: read only
62+
token: ${{ secrets.GETTING_STARTED_DISPATCH }}
63+
repository: tradingstrategy-ai/getting-started
64+
event-type: trade-executor-released
65+
client-payload: '{"image_tag": "${{ env.RELEASE_VERSION }}", "git_sha": "${{ github.sha }}"}'

0 commit comments

Comments
 (0)