Sync AWS Source Plugin Endpoints #18
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: Sync AWS Source Plugin Endpoints | |
on: | |
schedule: | |
# At 05:00 on Tuesday | |
- cron: "0 5 * * 2" | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: ./plugins/source/aws | |
jobs: | |
endpoints: | |
timeout-minutes: 30 | |
name: Update AWS services region data | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: plugins/source/aws/go.mod | |
cache: true | |
cache-dependency-path: plugins/source/aws/go.sum | |
- name: regenerate partition_service_region file | |
run: | | |
go run ./tools/endpoints/main.go | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
# required so the PR triggers workflow runs | |
token: ${{ secrets.GH_CQ_BOT }} | |
branch: feat/update_aws_services_region_data | |
base: main | |
title: "feat(services): Support newly added regions" | |
commit-message: "feat(services): Support newly added regions" | |
body: This PR was created by a scheduled workflow to update supported regions for AWS services | |
labels: automerge | |
author: cq-bot <[email protected]> |