Skip to content
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

chore(*): support SDK_VERSION_TAG env var and fetch latest tag in CI #72

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:

- name: Run tests
run: |
# Fetch latest aws-sdk-js release tag
export SDK_VERSION_TAG=$(curl -s https://api.github.com/repos/aws/aws-sdk-js/tags | jq '.[0].name')
make dev
/usr/local/openresty/luajit/bin/luarocks make
busted
4 changes: 2 additions & 2 deletions update_api_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# It will convert the service descriptions of the specified SDK version
# (see SDK_VERSION_TAG) into Lua modules and generate a rockspec.

SDK_VERSION_TAG=v2.751.0
SDK_VERSION_TAG="${SDK_VERSION_TAG:-v2.1434.0}"

# ----------- nothing to customize below -----------
TARGET=./src/resty/aws/raw-api
Expand All @@ -20,7 +20,7 @@ if [ -d $SOURCE ]; then
echo "directory $SOURCE already exists, delete before updating"
exit 1
fi
git clone --branch=$SDK_VERSION_TAG --depth=1 https://github.com/aws/aws-sdk-js.git $SOURCE
git clone --branch="$SDK_VERSION_TAG" --depth=1 https://github.com/aws/aws-sdk-js.git $SOURCE


# get a list of API files
Expand Down