الملفات
github-actions-demos/.github/workflows/pr-closed.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 2: cannot unmarshal !!str `${{ git...` into model.RawConcurrency
dependabot[bot] 4d6eb2cbc5 Bump Azure/cli from 1 to 2
Bumps [Azure/cli](https://github.com/azure/cli) from 1 to 2.
- [Release notes](https://github.com/azure/cli/releases)
- [Changelog](https://github.com/Azure/cli/blob/master/ReleaseProcess.md)
- [Commits](https://github.com/azure/cli/compare/v1...v2)

---
updated-dependencies:
- dependency-name: Azure/cli
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-11 12:12:37 +00:00

32 أسطر
705 B
YAML

name: pr-closed
concurrency: ${{ github.event.number }}
on:
pull_request:
types: [closed]
permissions:
id-token: write
contents: read
env:
resourceGroupName: pr_${{ github.event.number }}
jobs:
remove:
runs-on: ubuntu-latest
steps:
- uses: azure/login@v1
name: Sign in to Azure
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- uses: Azure/cli@v2
name: Delete resource group
with:
inlineScript: |
az group delete \
--name ${{ env.resourceGroupName }} \
--yes