Skip to content

Commit c886b43

Browse files
committed
fix: udpate workflow
1 parent 791f14b commit c886b43

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

.github/workflows/deploy-openapi-assets-dev.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,38 @@ jobs:
2727
name: Pack @docs/openapi
2828
run: |
2929
cd packages/openapi
30+
31+
# Install, then create a packed tarball; capture version & filename
3032
npm ci
3133
VERSION=$(node -p "require('./package.json').version")
3234
PACKFILE=$(npm pack | tail -n1)
3335
34-
# copy tarball to a stable "latest" filename
35-
cp "$PACKFILE" "openapi-latest.tgz"
36-
36+
# export step outputs for later steps
3737
echo "version=$VERSION" >> $GITHUB_OUTPUT
38+
# NOTE: packfile_name is just the filename (e.g. openapi-1.2.3.tgz)
3839
echo "packfile_name=$PACKFILE" >> $GITHUB_OUTPUT
40+
# tarball is the absolute path to the produced file
3941
echo "tarball=$PWD/$PACKFILE" >> $GITHUB_OUTPUT
40-
echo "latest_tarball=$PWD/openapi-latest.tgz" >> $GITHUB_OUTPUT
4142
42-
- name: Create or update release and upload tarball
43-
id: gh_release
43+
- name: Create or update tagged release and upload tarball
44+
id: gh_release_tag
4445
uses: softprops/action-gh-release@v1
4546
with:
4647
tag_name: "openapi-v${{ steps.pack.outputs.version }}"
4748
name: "openapi v${{ steps.pack.outputs.version }}"
4849
body: "Automated release for packages/openapi (pack + upload)"
49-
files: ${{ steps.pack.outputs.tarball }} ${{ steps.pack.outputs.latest_tarball }}
50+
files: ${{ steps.pack.outputs.tarball }}
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
54+
- name: Create or update latest release and upload tarball
55+
id: gh_release_latest
56+
uses: softprops/action-gh-release@v1
57+
with:
58+
tag_name: "openapi-latest"
59+
name: "openapi latest"
60+
body: "Automated release for packages/openapi (pack + upload)"
61+
files: ${{ steps.pack.outputs.tarball }}
5062
env:
5163
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5264

packages/openapi/descriptions/assistant-thread.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
desc: `The object type.`,
1010
},
1111
role: {
12-
desc: `The role of the entity that is creating the Message`,
12+
desc: `The role of the entity that is creating the Message.`,
1313
},
1414
content: {
1515
text: {

0 commit comments

Comments
 (0)