From 3b8ea5ac2dc7eda230ad0c43a5e28e509a7d0174 Mon Sep 17 00:00:00 2001 From: Pepe Fagoaga Date: Mon, 9 Dec 2024 09:17:29 +0100 Subject: [PATCH] chore: rename --- .../sdk-refresh-aws-services-regions.yml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/sdk-refresh-aws-services-regions.yml diff --git a/.github/workflows/sdk-refresh-aws-services-regions.yml b/.github/workflows/sdk-refresh-aws-services-regions.yml new file mode 100644 index 0000000000..bf7af302e2 --- /dev/null +++ b/.github/workflows/sdk-refresh-aws-services-regions.yml @@ -0,0 +1,67 @@ +# This is a basic workflow to help you get started with Actions + +name: SDK - Refresh AWS services' regions + +on: + schedule: + - cron: "0 9 * * *" #runs at 09:00 UTC everyday + +env: + GITHUB_BRANCH: "master" + AWS_REGION_DEV: us-east-1 + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + permissions: + id-token: write + pull-requests: write + contents: write + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + with: + ref: ${{ env.GITHUB_BRANCH }} + + - name: setup python + uses: actions/setup-python@v5 + with: + python-version: 3.9 #install the python needed + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install boto3 + + - name: Configure AWS Credentials -- DEV + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-region: ${{ env.AWS_REGION_DEV }} + role-to-assume: ${{ secrets.DEV_IAM_ROLE_ARN }} + role-session-name: refresh-AWS-regions-dev + + # Runs a single command using the runners shell + - name: Run a one-line script + run: python3 util/update_aws_services_regions.py + + # Create pull request + - name: Create Pull Request + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.PROWLER_BOT_ACCESS_TOKEN }} + commit-message: "feat(regions_update): Update regions for AWS services" + branch: "aws-services-regions-updated-${{ github.sha }}" + labels: "status/waiting-for-revision, severity/low, provider/aws, backport-to-v3" + title: "chore(regions_update): Changes in regions for AWS services" + body: | + ### Description + + This PR updates the regions for AWS services. + + ### License + + By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.