Update API Version on different resources #28
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: '[FGT] ARM - Azure Gateway Load Balancer' | |
env: | |
ARMPath: FortiGate/AzureGatewayLoadBalancer/ | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'FortiGate/AzureGatewayLoadBalancer/*.json' | |
- 'FortiGate/AzureGatewayLoadBalancer/**.tests.ps1' | |
jobs: | |
ARM_AzureGatewayLoadBalancer: | |
name: 'ARM Template AzureGatewayLoadBalancer' | |
runs-on: ubuntu-latest | |
env: | |
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }} | |
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }} | |
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }} | |
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }} | |
steps: | |
- name: "Checkout" | |
uses: actions/[email protected] | |
- name: Test ARM Templates - path | |
id: armttktest | |
uses: aliencube/[email protected] | |
with: | |
path: ${{ env.ARMPath }} | |
- name: Test result - path | |
shell: bash | |
continue-on-error: true | |
run: | | |
echo "${{ toJSON(fromJSON(steps.armttktest.outputs.results)) }}" | |
- name: Azure Login via Az module | |
uses: azure/[email protected] | |
with: | |
creds: ${{secrets.AZURE_CREDENTIALS}} | |
enable-AzPSSession: true | |
- name: Post result to Teams | |
uses: toko-bifrost/ms-teams-deploy-card@master # or "./" if in a local set-up | |
if: always() | |
with: | |
github-token: ${{ github.token }} | |
webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }} |