diff --git a/.github/workflows/pipelines-delegated.yml b/.github/workflows/pipelines-delegated.yml index e9ddeb09..848f314a 100644 --- a/.github/workflows/pipelines-delegated.yml +++ b/.github/workflows/pipelines-delegated.yml @@ -133,3 +133,23 @@ jobs: terragrunt_command: ${{ steps.bootstrap.outputs.terragrunt_command }} additional_data: ${{ steps.bootstrap.outputs.additional_data }} child_account_id: ${{ steps.bootstrap.outputs.child_account_id }} + + pipelines_cleanup: + name: "Pipelines Matrix Cleanup" + needs: [detect_changes, pipelines_determine] + runs-on: ${{ fromJSON(inputs.runner) }} + steps: + - name: Checkout Pipelines Actions + uses: actions/checkout@v4 + with: + path: pipelines-actions + repository: gruntwork-io/pipelines-actions + ref: ${{ env.PIPELINES_ACTIONS_VERSION }} + token: ${{ secrets.PIPELINES_READ_TOKEN }} + + - name: Update comment + # The idea here is that there is a race condition in the updating of the jobs in the matrix: + # if one job is uploading its state artifact WHILST another is downloading, then the downloader + # will miss the state update from the uploader, and if the downloader is the last job, there's nobody + # to come later and grab the uploader's update. + uses: ./pipelines-actions/.github/actions/pipelines-status-update \ No newline at end of file diff --git a/.github/workflows/pipelines-root.yml b/.github/workflows/pipelines-root.yml index c0478280..432b6cea 100644 --- a/.github/workflows/pipelines-root.yml +++ b/.github/workflows/pipelines-root.yml @@ -31,7 +31,7 @@ on: env: PIPELINES_CLI_VERSION: v0.10.1 - PIPELINES_ACTIONS_VERSION: v1.3.3 + PIPELINES_ACTIONS_VERSION: mutexspike BOILERPLATE_VERSION: v0.5.16 GRUNTWORK_INSTALLER_VERSION: v0.0.40