Skip to content

Commit

Permalink
Fix: Add pause between jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
kordwarshuis committed Aug 20, 2024
1 parent 2892db2 commit eff651f
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

## C: Triggered on Wiki changes:
# gollum

jobs:
call-action1:
uses: ./.github/workflows/import-wiki.yml
Expand All @@ -19,24 +20,45 @@ jobs:
GENERIC_SCRAPER_JSON_ENDPOINT: ${{ secrets.GENERIC_SCRAPER_JSON_ENDPOINT }}
ANNOTATED_COPIES_JSON_ENDPOINT: ${{ secrets.ANNOTATED_COPIES_JSON_ENDPOINT }}

call-action2:
pause-after-action1:
needs: call-action1
runs-on: ubuntu-latest
steps:
- name: Pause for 10 seconds
run: sleep 10

call-action2:
needs: pause-after-action1
uses: ./.github/workflows/import-metadata-google-sheet.yml
secrets:
TERMS_WOT_MANAGE_JSON_ENDPOINT: ${{ secrets.TERMS_WOT_MANAGE_JSON_ENDPOINT }}
GENERIC_SCRAPER_JSON_ENDPOINT: ${{ secrets.GENERIC_SCRAPER_JSON_ENDPOINT }}
ANNOTATED_COPIES_JSON_ENDPOINT: ${{ secrets.ANNOTATED_COPIES_JSON_ENDPOINT }}

call-action3:
pause-after-action2:
needs: call-action2
runs-on: ubuntu-latest
steps:
- name: Pause for 10 seconds
run: sleep 10

call-action3:
needs: pause-after-action2
uses: ./.github/workflows/import-external-glossaries.yml
secrets:
TERMS_WOT_MANAGE_JSON_ENDPOINT: ${{ secrets.TERMS_WOT_MANAGE_JSON_ENDPOINT }}
GENERIC_SCRAPER_JSON_ENDPOINT: ${{ secrets.GENERIC_SCRAPER_JSON_ENDPOINT }}
ANNOTATED_COPIES_JSON_ENDPOINT: ${{ secrets.ANNOTATED_COPIES_JSON_ENDPOINT }}

call-action4:
pause-after-action3:
needs: call-action3
runs-on: ubuntu-latest
steps:
- name: Pause for 10 seconds
run: sleep 10

call-action4:
needs: pause-after-action3
uses: ./.github/workflows/deploy-to-gh-pages.yml
secrets:
TERMS_WOT_MANAGE_JSON_ENDPOINT: ${{ secrets.TERMS_WOT_MANAGE_JSON_ENDPOINT }}
Expand Down

0 comments on commit eff651f

Please sign in to comment.