الملفات
github-actions-demos/.github/workflows/pr-validation.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] 33b7be97f2 Bump actions/checkout from 2 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-01 16:05:01 +00:00

47 أسطر
1.3 KiB
YAML

name: pr-validation
concurrency: ${{ github.event.number }}
on: pull_request
permissions:
id-token: write
contents: read
env:
resourceGroupName: pr_${{ github.event.number }}
resourceGroupLocation: eastus
jobs:
lint:
uses: ./.github/workflows/lint.yml
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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@v1
name: Create resource group
with:
inlineScript: |
az group create \
--name ${{ env.resourceGroupName }} \
--location ${{ env.resourceGroupLocation }}
- uses: azure/arm-deploy@v1
id: deploy
name: Deploy Bicep file
with:
failOnStdErr: false
deploymentName: ${{ github.run_number }}
resourceGroupName: ${{ env.resourceGroupName }}
template: ./bicep/main.bicep
parameters: >
environmentType=Test
- name: Show website hostname
run: |
echo "Access the website at this address: https://${{ steps.deploy.outputs.appServiceAppHostName }}"