Skip to content

Commit

Permalink
ci: upgrade to latest action version (#200)
Browse files Browse the repository at this point in the history
* ci: upgrade to latest action version

* test: update test case

* ci: update

* ci: update
  • Loading branch information
wenytang-ms authored Jul 9, 2024
1 parent d92ee31 commit 89f700b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/test/resources/yaml/azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ steps:
scriptType: "ps"
scriptLocation: "inlineScript"
inlineScript: |
az apic api register -g ${env:RESOURCE_GROUP} -s ${env:RESOURCE_NAME} --api-location ${env:FILE_LOCATION}
az extension add --name apic-extension --version 1.0.0
az apic api register -g ${env:RESOURCE_GROUP} -n ${env:RESOURCE_NAME} --api-location ${env:FILE_LOCATION}
7 changes: 4 additions & 3 deletions src/test/resources/yaml/github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
# https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#creating-an-environment
environment: production
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-azure
# https://github.com/marketplace/actions/azure-login#login-with-openid-connect-oidc-recommended
- name: Azure login
uses: azure/login@v1
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
Expand All @@ -35,4 +35,5 @@ jobs:
with:
azcliversion: latest
inlineScript: |
az apic api register -g ${{ vars.RESOURCE_GROUP }} -s ${{ vars.RESOURCE_NAME }} --api-location ${{ vars.FILE_LOCATION }}
az extension add --name apic-extension --version 1.0.0
az apic api register -g ${{ vars.RESOURCE_GROUP }} -n ${{ vars.RESOURCE_NAME }} --api-location ${{ vars.FILE_LOCATION }}
3 changes: 2 additions & 1 deletion templates/.azure-pipelines/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ steps:
scriptType: "ps"
scriptLocation: "inlineScript"
inlineScript: |
az apic api register -g ${env:RESOURCE_GROUP} -s ${env:RESOURCE_NAME} --api-location ${env:FILE_LOCATION}
az extension add --name apic-extension --version 1.0.0
az apic api register -g ${env:RESOURCE_GROUP} -n ${env:RESOURCE_NAME} --api-location ${env:FILE_LOCATION}
7 changes: 4 additions & 3 deletions templates/.github/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
# https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#creating-an-environment
environment: production
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-azure
# https://github.com/marketplace/actions/azure-login#login-with-openid-connect-oidc-recommended
- name: Azure login
uses: azure/login@v1
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
Expand All @@ -35,4 +35,5 @@ jobs:
with:
azcliversion: latest
inlineScript: |
az apic api register -g ${{ vars.RESOURCE_GROUP }} -s ${{ vars.RESOURCE_NAME }} --api-location ${{ vars.FILE_LOCATION }}
az extension add --name apic-extension --version 1.0.0
az apic api register -g ${{ vars.RESOURCE_GROUP }} -n ${{ vars.RESOURCE_NAME }} --api-location ${{ vars.FILE_LOCATION }}

0 comments on commit 89f700b

Please sign in to comment.