Automated Maintenance #1114
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: Automated Maintenance | |
on: | |
schedule: | |
- cron: '0 13 * * *' | |
workflow_dispatch: # Enables on-demand/manual triggering | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- run: | | |
npm install | |
npx pyright --version | |
python -m pip install -r requirements-dev.txt | |
make spec | |
make regen | |
make test | |
make lint | |
- name: Set spec version variable | |
id: vars | |
run: | | |
echo "pr_title=Updates from spec version $(jq -r .ResourceSpecificationVersion CloudFormationResourceSpecification.json)" >> $GITHUB_OUTPUT | |
- uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: | | |
${{ steps.vars.outputs.pr_title }} | |
title: ${{ steps.vars.outputs.pr_title }} | |
delete-branch: true | |
body: | | |
Autogenerated by maintenance action | |
If tests are stuck on https://github.com/peter-evans/create-pull-request/issues/48: | |
["Manually close pull requests and immediately reopen them. This will enable `on: pull_request` workflows to run and be added as checks."](https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#triggering-further-workflow-runs) |