Update Structures from Generator #202
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: 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 }} |