Skip to content

chore(service-disco): refactor registrar cache #4118

chore(service-disco): refactor registrar cache

chore(service-disco): refactor registrar cache #4118

Workflow file for this run

name: Dependencies
on:
schedule:
- cron: "0 5 * * *"
# All PR event types are listed so GitHub delivers the event payload (which includes label info).
# The job-level `if` then gates execution on the `run-bump-ci` label — GitHub's `on:` syntax
# has no native label filter, so this two-part pattern is the standard workaround.
pull_request:
types: [labeled, synchronize, opened, reopened]
workflow_dispatch:
inputs:
libp2p_ref:
description: "nim-libp2p branch, tag, or SHA to test"
required: false
default: ""
jobs:
bumper:
# Pushes new refs to interested external repositories, so they can do early testing against libp2p's newer versions
# Scheduled runs proceed when DEPENDENCIES_AUTOBUMP_ENABLED is unset or true; set it to false to disable.
name: Bump libp2p version
if: >
(github.event_name != 'schedule' ||
vars.DEPENDENCIES_AUTOBUMP_ENABLED == '' ||
vars.DEPENDENCIES_AUTOBUMP_ENABLED == 'true') &&
(github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-bump-ci'))
uses: ./.github/workflows/dependencies_matrix.yml
with:
libp2p_ref: ${{ inputs.libp2p_ref || github.event.pull_request.head.sha || github.sha }}
secrets: inherit