Skip to content

Cron ping IPFS Gateway #114

Cron ping IPFS Gateway

Cron ping IPFS Gateway #114

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 }}