Skip to content

Commit

Permalink
make for all services if sdk was updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwara committed Jul 9, 2024
1 parent 049c56e commit 0431661
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/check-sdk-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
git clone --depth=1 https://github.com/aws/aws-sdk-go-v2.git
- name: Check SDK updates
id: check-sdk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_SDK_GO_V2_DIR: ./aws-sdk-go-v2
Expand All @@ -32,10 +33,16 @@ jobs:
echo "No changes detected"
exit 0
fi
echo "updated=true" >> "$GITHUB_OUTPUT"
git switch -c update-aws-sdk-go-v2-$(date +%Y%m%d-%H%M%S)
git add all-services.yaml
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "${GITHUB_ACTOR}"
git commit -m "Update all-services.yaml"
git push --set-upstream origin update-aws-sdk-go-v2-$(date +%Y%m%d-%H%M%S)
gh pr create --title "Update all-services.yaml" --body "Update all-services.yaml" --base main
- name: make all services
if: ${{ steps.check-sdk.outputs.updated == 'true' }}
run: |
cp all-services.yaml gen.yaml
make

0 comments on commit 0431661

Please sign in to comment.