Skip to content

Commit

Permalink
Merge pull request #334 from lidofinance/feature/si-1349-ping-ipfs-cron
Browse files Browse the repository at this point in the history
feat: add cron for ping IPFS gateway
  • Loading branch information
DiRaiks authored May 29, 2024
2 parents 8e569ed + 4b21644 commit 2a78a25
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/cron-ping-ipfs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Cron ping IPFS Gateway

on:
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
inputs:
IPFS_CID:
description: 'IPFS CID'
required: true
type: string
GATEWAY:
description: 'Gateway'
required: true
type: string

jobs:
build:
runs-on: ubuntu-latest
name: Ping IPFS Gateway
environment: Cron ping IPFS Gateway
steps:
- name: Ping IPFS Gateway
shell: bash
run: |
BODY_RESULT=`npx -y [email protected] ping $IPFS_CID $GATEWAY`
echo "$BODY_RESULT" >> $GITHUB_STEP_SUMMARY
env:
IPFS_CID: ${{ inputs.IPFS_CID || vars.IPFS_CID }}
GATEWAY: ${{ inputs.GATEWAY || vars.GATEWAY }}

0 comments on commit 2a78a25

Please sign in to comment.