Skip to content

Update Structures from Generator #202

Update Structures from Generator

Update Structures from Generator #202

Workflow file for this run

name: Update Structures from Generator
on:
workflow_dispatch:
schedule:
- cron: '0 21 * * *'
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update Structures
uses: nick-fields/retry@v3
with:
timeout_seconds: 120
max_attempts: 3
command: bash tools/update/update.sh
- name: Get AWS SDK for PHP Version
id: version
run: |
version=$(curl -sL -o - https://raw.githubusercontent.com/sunaoka/aws-sdk-php-structures-generator/refs/heads/main/composer.json | jq -r .require.'"aws/aws-sdk-php"')
echo "version=$version" >> "$GITHUB_OUTPUT"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update Structures from AWS SDK for PHP ${{ steps.version.outputs.version }}
delete-branch: true
title: Update Structures from AWS SDK for PHP ${{ steps.version.outputs.version }}
body: |
Structures have been updated.
https://github.com/aws/aws-sdk-php/releases/tag/${{ steps.version.outputs.version }}