mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
17c1fc3250
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
42 lines
1.5 KiB
YAML
42 lines
1.5 KiB
YAML
name: Update DAppNodePackages
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
dappnode-update-beacon-chain:
|
|
name: Trigger a beacon-chain release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get latest tag
|
|
id: get_tag
|
|
run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
|
|
- name: Send dispatch event to DAppNodePackage-prysm-beacon-chain
|
|
env:
|
|
DISPATCH_REPO: dappnode/DAppNodePackage-prysm-beacon-chain
|
|
run: |
|
|
curl -v -X POST -u "${{ secrets.PAT_GITHUB }}" \
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
-H "Content-Type: application/json" \
|
|
--data '{"event_type":"new_release", "client_payload": { "tag":"${{ steps.get_tag.outputs.TAG }}"}}' \
|
|
https://api.github.com/repos/$DISPATCH_REPO/dispatches
|
|
|
|
dappnode-update-validator:
|
|
name: Trigger a validator release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get latest tag
|
|
id: get_tag
|
|
run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
|
|
- name: Send dispatch event to DAppNodePackage validator repository
|
|
env:
|
|
DISPATCH_REPO: dappnode/DAppNodePackage-prysm-validator
|
|
run: |
|
|
curl -v -X POST -u "${{ secrets.PAT_GITHUB }}" \
|
|
-H "Accept: application/vnd.github.everest-preview+json" \
|
|
-H "Content-Type: application/json" \
|
|
--data '{"event_type":"new_release", "client_payload": { "tag":"${{ steps.get_tag.outputs.TAG }}"}}' \
|
|
https://api.github.com/repos/$DISPATCH_REPO/dispatches
|