Merge pull request #22 from SimonVerhoeven/foojay-discoapi-template #23
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: 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@v3 | |
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 |