Skip to content

Merge pull request #39 from TecharyJames/fix-retention-policy-null-check #48

Merge pull request #39 from TecharyJames/fix-retention-policy-null-check

Merge pull request #39 from TecharyJames/fix-retention-policy-null-check #48

# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build and deploy Powershell project to Azure Function App - cipp5ddgz-auditlog
on:
push:
branches:
- master
workflow_dispatch:
env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write #This is required for requesting the JWT
contents: read #This is required for actions/checkout
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4
- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_81384BC8B47540A8B8D22A64D1F7861C }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_78AE534BE57149F9B874138985978002 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_2697E56BC8B6437AB0528F28D14C4C9F }}
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'cipp5ddgz-auditlog'
slot-name: 'Production'
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}