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