From 11a403f9e7563f3d5fb604e5a9d4de510ca31114 Mon Sep 17 00:00:00 2001 From: devkeydet Date: Tue, 18 Apr 2023 11:23:15 -0400 Subject: [PATCH] closes #219 --- .github/workflows/convert-unmanaged-to-managed.yml | 9 --------- .../workflows/delete-and-import-unmanaged-solution.yml | 10 +--------- ...anaged-solution-and-components-from-environment.yml | 9 --------- .github/workflows/export-unpack-commit-solution.yml | 10 +--------- .github/workflows/import-unmanaged-solution.yml | 10 +--------- 5 files changed, 3 insertions(+), 45 deletions(-) diff --git a/.github/workflows/convert-unmanaged-to-managed.yml b/.github/workflows/convert-unmanaged-to-managed.yml index abc4b5a7..b75221cb 100644 --- a/.github/workflows/convert-unmanaged-to-managed.yml +++ b/.github/workflows/convert-unmanaged-to-managed.yml @@ -36,15 +36,6 @@ jobs: environment: ${{ needs.get-environment-from-domain.outputs.subdomain }} steps: - uses: actions/checkout@v2 - - # Some Dataverse calls in this workflow cannot run async. Therefore, they will fail - # If someone runs more than one workflow against the environment at the same time. - # To prevent this, wait for other workflows queued up to finish before continuing - - name: queue-environment - id: queue-environment - uses: devkeydet/action-environment-queue@v1 - with: - environment: ${{ needs.get-environment-from-domain.outputs.subdomain }} - name: convert-unmanaged-to-managed uses: ./.github/actions/convert-unmanaged-to-managed diff --git a/.github/workflows/delete-and-import-unmanaged-solution.yml b/.github/workflows/delete-and-import-unmanaged-solution.yml index 17d15275..30f9045d 100644 --- a/.github/workflows/delete-and-import-unmanaged-solution.yml +++ b/.github/workflows/delete-and-import-unmanaged-solution.yml @@ -40,15 +40,6 @@ jobs: - name: set-pac-path uses: ./.github/actions/set-pac-path - # Some Dataverse calls in this workflow cannot run async. Therefore, they will fail - # If someone runs more than one workflow against the environment at the same time. - # To prevent this, wait for other workflows queued up to finish before continuing - - name: queue-environment - id: queue-environment - uses: devkeydet/action-environment-queue@v1 - with: - environment: ${{ needs.get-environment-from-domain.outputs.subdomain }} - - name: delete-unmanaged-solution-and-components-from-environment uses: ./.github/actions/delete-unmanaged-solution-and-components-from-environment with: @@ -82,6 +73,7 @@ jobs: app-id: ${{ secrets.CLIENT_ID }} client-secret: ${{ secrets.CLIENT_SECRET }} tenant-id: ${{ secrets.TENANT_ID }} + run-asynchronously: true import-data-and-turn-on-flows: runs-on: windows-2022 diff --git a/.github/workflows/delete-unmanaged-solution-and-components-from-environment.yml b/.github/workflows/delete-unmanaged-solution-and-components-from-environment.yml index d4e1af43..84d2aee1 100644 --- a/.github/workflows/delete-unmanaged-solution-and-components-from-environment.yml +++ b/.github/workflows/delete-unmanaged-solution-and-components-from-environment.yml @@ -23,15 +23,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - # Some Dataverse calls in this workflow cannot run async. Therefore, they will fail - # If someone runs more than one workflow against the environment at the same time. - # To prevent this, wait for other workflows queued up to finish before continuing - - name: queue-environment - id: queue-environment - uses: devkeydet/action-environment-queue@v1 - with: - environment: ${{ needs.get-environment-from-domain.outputs.subdomain }} - name: delete-unmanaged-solution-and-components-from-environment uses: ./.github/actions/delete-unmanaged-solution-and-components-from-environment diff --git a/.github/workflows/export-unpack-commit-solution.yml b/.github/workflows/export-unpack-commit-solution.yml index bcd83278..c68e57cd 100644 --- a/.github/workflows/export-unpack-commit-solution.yml +++ b/.github/workflows/export-unpack-commit-solution.yml @@ -66,15 +66,6 @@ jobs: run: | git checkout -b ${{ github.event.inputs.branch_to_create }} ${{ github.event.inputs.source_branch }} - # Some Dataverse calls in this workflow cannot run async. Therefore, they will fail - # If someone runs more than one workflow against the environment at the same time. - # To prevent this, wait for other workflows queued up to finish before continuing - - name: queue-environment - id: queue-environment - uses: devkeydet/action-environment-queue@v1 - with: - environment: ${{ needs.get-environment-from-domain.outputs.subdomain }} - - name: publish-customizations uses: microsoft/powerplatform-actions/publish-solution@latest with: @@ -82,6 +73,7 @@ jobs: app-id: ${{ secrets.CLIENT_ID }} client-secret: ${{ secrets.CLIENT_SECRET }} tenant-id: ${{ secrets.TENANT_ID }} + run-asynchronously: true - name: export-unmanaged-solution uses: microsoft/powerplatform-actions/export-solution@latest diff --git a/.github/workflows/import-unmanaged-solution.yml b/.github/workflows/import-unmanaged-solution.yml index 8cd51fc5..ff0563bf 100644 --- a/.github/workflows/import-unmanaged-solution.yml +++ b/.github/workflows/import-unmanaged-solution.yml @@ -36,15 +36,6 @@ jobs: steps: - uses: actions/checkout@v2 - # Some Dataverse calls in this workflow cannot run async. Therefore, they will fail - # If someone runs more than one workflow against the environment at the same time. - # To prevent this, wait for other workflows queued up to finish before continuing - - name: queue-environment - id: queue-environment - uses: devkeydet/action-environment-queue@v1 - with: - environment: ${{ needs.get-environment-from-domain.outputs.subdomain }} - - name: build-solution uses: ./.github/actions/build-solution with: @@ -69,6 +60,7 @@ jobs: app-id: ${{ secrets.CLIENT_ID }} client-secret: ${{ secrets.CLIENT_SECRET }} tenant-id: ${{ secrets.TENANT_ID }} + run-asynchronously: true import-data-turn-on-flows: runs-on: windows-2022