Skip to content

Merge pull request #24 from wiremock/dependabot/github_actions/aws-ac… #25

Merge pull request #24 from wiremock/dependabot/github_actions/aws-ac…

Merge pull request #24 from wiremock/dependabot/github_actions/aws-ac… #25

name: Keep WireMock Cloud Public API Template Library in sync with repo
on:
workflow_call:
push:
branches:
- main
permissions: write-all
jobs:
compare_difference_between_branches_and_upgrade_cloud_when_its_different:
runs-on: ubuntu-20.04
steps:
- uses: aws-actions/[email protected]
with:
role-to-assume: arn:aws:iam::499333472133:role/GitHub-Manage-WireMock-Api-Templates
aws-region: us-east-1
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Sync changes to live
run: ./scripts/sync_changed_templates_with_cloud.sh https://api.wiremock.cloud wiremock.cloud/live/system
- name: Sync changes to qa
run: ./scripts/sync_changed_templates_with_cloud.sh https://api.qa.wiremock.cloud wiremock.cloud/qa/system
- name: Sync changes to dev
run: ./scripts/sync_changed_templates_with_cloud.sh https://api.dev.wiremock.cloud wiremock.cloud/dev/system