From 5d0126e8238e0116dfe8c198d2912a087b9dfafa Mon Sep 17 00:00:00 2001 From: Orfeas Kourkakis Date: Wed, 24 Jan 2024 11:15:28 +0200 Subject: [PATCH] add workflow 11:20 --- .github/workflows/worfklow.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/worfklow.yml diff --git a/.github/workflows/worfklow.yml b/.github/workflows/worfklow.yml new file mode 100644 index 0000000..1931273 --- /dev/null +++ b/.github/workflows/worfklow.yml @@ -0,0 +1,29 @@ +# File: .github/workflows/workflow.yml + +name: Run Azure Login with OIDC +on: + workflow_dispatch: + + schedule: + - cron: "20 9 * * 2" + +permissions: + id-token: write + contents: read +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Azure login + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + + - name: Azure CLI script + uses: azure/CLI@v1 + with: + azcliversion: latest + inlineScript: | + az account show