Skip to content

Commit 0cd69c5

Browse files
committed
Fix #20 Update metadata.ts files when releasing a new version
1 parent edf4c6b commit 0cd69c5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ jobs:
5252
NPM_CONFIG_PROVENANCE: true
5353
NPM_CONFIG_ACCESS: public
5454

55+
- name: Push metadata changes
56+
if: always()
57+
run: |
58+
files="packages/agents-core/src/metadata.ts packages/agents-extensions/src/metadata.ts packages/agents-openai/src/metadata.ts packages/agents-realtime/src/metadata.ts packages/agents/src/metadata.ts"
59+
if git diff --quiet -- $files; then
60+
echo "No metadata changes to push"
61+
else
62+
git config user.name "github-actions[bot]"
63+
git config user.email "github-actions[bot]@users.noreply.github.com"
64+
git add $files
65+
git commit -m "chore: sync metadata files"
66+
git push origin HEAD:main
67+
fi
68+
5569
- name: Tag release
5670
# currently this step does not work due to https://github.com/openai/openai-agents-js/pull/232
5771
if: steps.changesets.outputs.published == 'true'

0 commit comments

Comments
 (0)