Skip to content

Choose a tag to compare

@Mynster9361 Mynster9361 released this 11 Sep 08:17
· 8 commits to main since this release

This is the initial release of this Github Action.

The action will handle source control in Azure Automation by pushing changes from Github to Azure automation using an App registration with Federated credentials.
The app registration needs contributor access to the automation account.

Remember to add the github secrets below
AZURE_CLIENT_ID
AZURE_TENANT_ID
AZURE_SUBSCRIPTION_ID
AZURE_RESOURCE_GROUP
AUTOMATION_ACCOUNT_NAME

Installation

Setup For step by step instructions.

steps:
  - name: Checkout repository
    uses: actions/checkout@v5
    with:
      fetch-depth: 0  # Important to fetch all history for proper diffs

  - name: Azure Login
    uses: azure/login@v2
    with:
      client-id: ${{ secrets.AZURE_CLIENT_ID }}
      tenant-id: ${{ secrets.AZURE_TENANT_ID }}
      subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

  - name: Sync Azure Automation Runbooks
    uses: Mynster9361/azure-automation-source-control@v1.0.0
    with:
        subscription_id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
        resource_group: ${{ secrets.AZURE_RESOURCE_GROUP }}
        automation_account: ${{ secrets.AZURE_AUTOMATION_ACCOUNT }}
        path_filter: ${{ github.event.inputs.path_filter || '.' }}
        validate_all: ${{ github.event.inputs.validate_all || false }}

Full documentation

See the README for full documentation.

Full Changelog: https://github.com/Mynster9361/AzureAutomationSourceControl/commits/v1.0.0