Skip to content

Commit

Permalink
feat(workflow-dispatcher): Run the update-lockfile first to cache R d…
Browse files Browse the repository at this point in the history
…ependencies
  • Loading branch information
RasmusSkytte committed Jul 23, 2024
1 parent c818aa4 commit 11e7794
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/workflow-dispatcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 11e7794

Please sign in to comment.