Adding new KB sync options and fixing older ones (#7679) #1
This file contains hidden or 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
| name: Deploy KB_Updater Lambda Function | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - '.tools/lambda/KB_Updater.py' | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v5 | |
| with: | |
| role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }} | |
| aws-region: us-west-2 | |
| - name: Deploy Lambda | |
| run: | | |
| cd .tools/lambda | |
| zip function.zip KB_Updater.py | |
| aws lambda update-function-code \ | |
| --function-name KB_Updater \ | |
| --zip-file fileb://function.zip |