Skip to content

Commit

Permalink
chore(*): support SDK_VERSION_TAG env var and fetch latest tag in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
windmgc committed Aug 11, 2023
1 parent 91d9152 commit bfcc9cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit bfcc9cf

Please sign in to comment.