Skip to content

Commit

Permalink
Create self-hosted-check
Browse files Browse the repository at this point in the history
  • Loading branch information
githubofkrishnadhas authored Dec 9, 2024
1 parent 4ed7bf7 commit 19178cf
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/self-hosted-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Azure Auth and az account show on selfhosted runner

on:
# push:
workflow_dispatch:

jobs:
azure-auth:
runs-on: self-hosted

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Azure CLI script
uses: azure/cli@v2
with:
azcliversion: latest
inlineScript: |
az login --service-principal -u ${{ secrets.ARM_CLIENT_ID }} -p ${{ secrets.ARM_CLIENT_SECRET }} --tenant ${{ secrets.ARM_TENANT_ID }}
az account set --subscription ${{ secrets.ARM_SUBSCRIPTION_ID }}
az account show -o json

- name: Completed
run: echo 'completed'

0 comments on commit 19178cf

Please sign in to comment.