This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
.github/workflows/gen-code.yml #819
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
schedule: | |
- cron: "0 2 * * *" | |
push: | |
tags: | |
- 'manual-*' | |
jobs: | |
generation: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.15.1' # The Go version to download (if necessary) and use. | |
- name: test | |
env: | |
REPO_GITHUB_AWS: aws/aws-sdk-go | |
run: | | |
SDK_ACTUAL_VERSION=$(cat aws-sdk.version) | |
LAST_VERSION=$(./scripts/git-utils/get_last_version.sh $REPO_GITHUB_AWS) | |
if [ "$SDK_ACTUAL_VERSION" = "$LAST_VERSION" ]; then | |
echo "no new version" | |
else | |
./scripts/generate_all_since_version.sh $SDK_ACTUAL_VERSION $LAST_VERSION $REPO_GITHUB_AWS | |
fi |