Build and Release #29
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
name: Build and Release | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
- cron: 0 0 * * 3 | |
jobs: | |
build-completion: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- uses: actions/setup-node@v4 | |
- run: curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash | |
- run: echo "$HOME/.rye/shims" >> $GITHUB_PATH | |
- run: rye config --set-bool behavior.use-uv=true | |
- run: rye sync | |
- run: rye lock --update awscli | |
- run: rye sync | |
- run: rye run aws configure set plugins.aws_cli_plugin aws_cli_plugin | |
- name: Build specs | |
run: rye run aws | |
continue-on-error: true | |
- name: Remove ec2 and s3 | |
run: rm export/ts/aws/ec2.ts export/ts/aws/s3.ts | |
- name: Run prettier | |
run: npx -y prettier --ignore-path=.prettierignore -w export/ts | |
- uses: withfig/push-to-fig-autocomplete-action@v2 | |
with: | |
token: ${{ secrets.FIG_BOT_TOKEN }} | |
autocomplete-spec-name: aws | |
spec-path: export/ts/aws.ts | |
spec-folder-path: export/ts/aws | |
pr-body: "Automated PR for latest AWS CLI release by https://github.com/withfig/aws-cli-plugin" |