Skip to content

Commit

Permalink
Merge branch 'getmoto:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLevyMN authored Jan 19, 2024
2 parents 31b1a8e + 35eb009 commit 23f1783
Show file tree
Hide file tree
Showing 6 changed files with 56,568 additions and 30,445 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/data-update_iam-managed-policies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Data Update:
# IAM Managed Policies
#
# This Github Action:
# - executes the script that updates the IAM Managed Policies that come bundled with Moto
# - creates a PR
#
name: "DataUpdate_IAMManagedPolicies"

on:
schedule:
- cron: '00 6 1 * *'
workflow_dispatch:

jobs:
update:
name: Update IAM Managed Policies
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'getmoto/moto' }}
permissions:
id-token: write
contents: write
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::486285699788:role/GithubActionsRole

- name: Pull IAM managed policies from AWS
run: |
pip install -r requirements-dev.txt
make aws_managed_policies
- name: Create PR
uses: peter-evans/create-pull-request@v5
with:
branch: 'chore-update-iam-managed-policies-${{ github.run_number }}'
title: 'chore: update IAM Managed Policies'
commit-message: 'chore: update IAM Managed Policies'
Loading

0 comments on commit 23f1783

Please sign in to comment.