mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 05:38:55 +00:00
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
|