Skip to content

Commit

Permalink
[CI] Fix prdoc command (#5358)
Browse files Browse the repository at this point in the history
Changes:
- Run the prdoc command in a docker container since otherwise the
set-up-gh script wont work.
- Take try-runtime snapshot at night to avoid spamming the node with
snapshot jobs at day.

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez authored Aug 14, 2024
1 parent 81d8f0c commit d8c2944
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/check-runtime-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- master
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
# Take a snapshot at 5am when most SDK devs are not working.
schedule:
- cron: '0 5 * * *'
merge_group:
workflow_dispatch:

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/command-prdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,21 @@ concurrency:
cancel-in-progress: true

jobs:
set-image:
runs-on: ubuntu-latest
outputs:
IMAGE: ${{ steps.set_image.outputs.IMAGE }}
steps:
- name: Checkout
uses: actions/checkout@v4
- id: set_image
run: cat .github/env >> $GITHUB_OUTPUT
cmd-prdoc:
needs: [set-image]
runs-on: ubuntu-latest
timeout-minutes: 20
container:
image: ${{ needs.set-image.outputs.IMAGE }}
permissions:
contents: write
pull-requests: write
Expand Down

0 comments on commit d8c2944

Please sign in to comment.