zhangalex / install-azure-cli-action

Github action to install azure-cli to test a workflow locally using 'act' or on a self-hosted

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

Github action to install azure-cli on a debian-based system (eg: Ubuntu).

This is useful to test a workflow locally using act or on a self-hosted machine.

Usage

name: automatic-deploy

on:
  pull-request:
  push:
  workflow_dispatch:

jobs:
  deploy:
    # Replace `self-hosted-ubuntu` with the label of your self-hosted runner(s)
    runs-on: self-hosted-ubuntu
  steps:
    # install azure-cli
    - uses: pietrobolcato/install-azure-cli-action@main
    # now run any step that would require the `az` command line utility, eg:
    - uses: azure/webapps-deploy@v2

About

Github action to install azure-cli to test a workflow locally using 'act' or on a self-hosted


Languages

Language:Shell 100.0%