Skip to content

Fix the github action also rev package version to the next version. #803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/generate-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
type: string
required: true
description: 'The remote kubernetes release branch to fetch openapi spec. .e.g. "release-1.23"'
genCommit:
type: string
required: true
default: '82c3ff5'
description: 'The commit to use for the kubernetes-client/gen repo'


jobs:
Expand All @@ -15,12 +20,15 @@ jobs:
steps:
- name: Checkout Javascript
uses: actions/checkout@v3
- name: Setup Java
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Checkout Gen
run: git clone https://github.com/kubernetes-client/gen
run: |
git clone https://github.com/kubernetes-client/gen
pushd gen
git checkout "${{ github.event.inputs.genCommit }}"
- name: Generate Branch Name
run: |
SUFFIX=$(openssl rand -hex 4)
Expand All @@ -30,7 +38,7 @@ jobs:
pushd gen/openapi
cat <<"EOF"> settings
# kubernetes-client/gen commit to use for code generation.
export GEN_COMMIT=82c3ff5
export GEN_COMMIT="${{ github.event.inputs.genCommit }}"
# GitHub username/organization to clone kubernetes repo from.
export USERNAME=kubernetes
# Kubernetes branch/tag to get the OpenAPI spec from.
Expand All @@ -42,7 +50,7 @@ jobs:
export PACKAGE_NAME="@kubernetes/node-client"
export OPENAPI_GENERATOR_COMMIT=1314e229
EOF
bash typescript.sh ../../src/gen settings
bash typescript.sh ../../src/gen/api settings
popd
cp settings ../../settings
rm -rf gen
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kubernetes/client-node",
"version": "0.16.3",
"version": "0.16.4",
"description": "NodeJS client for kubernetes",
"repository": {
"type": "git",
Expand Down