Skip to content

.github/workflows/acr-size-limit.yaml #480

.github/workflows/acr-size-limit.yaml

.github/workflows/acr-size-limit.yaml #480

on:
workflow_dispatch:
schedule:
- cron: '30 20 * * *'
jobs:
check_repo_limit_job:
runs-on: ubuntu-latest
name: A job to check repo limit
steps:
- name: check repo limit
continue-on-error: true
id: check-repo-limit
uses: VirtoCommerce/vc-github-actions/check-acr-repos-size-limit@master
with:
service_principal_id: ${{ secrets.VCCLOUD_AZURE_CLIENT_ID }}
service_principal_password: ${{ secrets.VCCLOUD_AZURE_CLIENT_SECRET }}
tenant_id: ${{ secrets.VCCLOUD_AZURE_TENANT_ID }}
web_hook_url: ${{ secrets.VCCLOUD_WEB_HOOK_URL }}
env:
AZURE_CLIENT_ID: ${{ secrets.VCCLOUD_AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.VCCLOUD_AZURE_TENANT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.VCCLOUD_AZURE_CLIENT_SECRET }}
- run: echo ${{ steps.check-repo-limit.conclusion }}
- name: check previous step
if: ${{ steps.check-repo-limit.conclusion == 'failure' }}
run: |
curl --location \
--request POST ${{ secrets.VCCLOUD_WEB_HOOK_URL }} \
--header 'Content-Type: application/json' \
--data-raw '{ "text": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed" }'