From 11e77942974e6439a0d9486a1b6a95eed2b86702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Skytte=20Randl=C3=B8v?= Date: Tue, 23 Jul 2024 13:11:07 +0200 Subject: [PATCH] feat(workflow-dispatcher): Run the update-lockfile first to cache R dependencies --- .github/workflows/workflow-dispatcher.yaml | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/workflow-dispatcher.yaml b/.github/workflows/workflow-dispatcher.yaml index c3dd24d..ddef54c 100644 --- a/.github/workflows/workflow-dispatcher.yaml +++ b/.github/workflows/workflow-dispatcher.yaml @@ -188,40 +188,40 @@ jobs: echo "update-lockfile: ${{ needs.trigger.outputs.update-lockfile }}" - document: + update-lockfile: needs: trigger - if: ${{ needs.trigger.outputs.document }} - uses: ./.github/workflows/document.yaml + if: ${{ needs.trigger.outputs.update-lockfile }} + uses: ./.github/workflows/update-lockfile.yaml with: + cache_version: ${{ needs.trigger.outputs.cache_version }} branch_name: ${{ needs.trigger.outputs.branch_name }} secrets: inherit concurrency: - group: document-${{ needs.trigger.outputs.branch_name }} + group: update-lockfile-${{ needs.trigger.outputs.branch_name }} cancel-in-progress: true - render-readme: - needs: trigger - if: ${{ needs.trigger.outputs.render-readme }} - uses: ./.github/workflows/render-readme.yaml + document: + needs: update-lockfile + if: ${{ needs.trigger.outputs.document }} + uses: ./.github/workflows/document.yaml with: branch_name: ${{ needs.trigger.outputs.branch_name }} secrets: inherit concurrency: - group: render-readme-${{ needs.trigger.outputs.branch_name }} + group: document-${{ needs.trigger.outputs.branch_name }} cancel-in-progress: true - update-lockfile: - needs: trigger - if: ${{ needs.trigger.outputs.update-lockfile }} - uses: ./.github/workflows/update-lockfile.yaml + render-readme: + needs: update-lockfile + if: ${{ needs.trigger.outputs.render-readme }} + uses: ./.github/workflows/render-readme.yaml with: - cache_version: ${{ needs.trigger.outputs.cache_version }} branch_name: ${{ needs.trigger.outputs.branch_name }} secrets: inherit concurrency: - group: update-lockfile-${{ needs.trigger.outputs.branch_name }} + group: render-readme-${{ needs.trigger.outputs.branch_name }} cancel-in-progress: true