-
-
Notifications
You must be signed in to change notification settings - Fork 83
43 lines (41 loc) · 1.32 KB
/
update-smithy-models.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Update AWS service files
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * 1'
jobs:
build:
runs-on: macOS-latest
steps:
- name: App Token
uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 1
- name: Install Dependencies
run: |
brew install swift-sh
brew install mint
echo "$HOME/.mint/bin" >> $GITHUB_PATH
- name: Update Models
id: update-models
run: |
./scripts/update_models.sh | grep AWS_MODELS_VERSION >> $GITHUB_ENV
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: 'Update models from aws-sdk-go-v2 ${{ env.AWS_MODELS_VERSION }}'
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
branch: aws-update-models
title: 'Update models from aws-sdk-go-v2 ${{ env.AWS_MODELS_VERSION }}'
body: 'Automated update of AWS service files from Smithy model files in aws-sdk-go-v2 repository'
base: main