Skip to content

Commit

Permalink
Merge pull request #1637 from pSchlarb/DependencyUpdateTrigger
Browse files Browse the repository at this point in the history
Trigger Node Update
  • Loading branch information
pSchlarb authored Apr 19, 2023
2 parents a6e3c6c + f5a18f5 commit f9bdcc4
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/publishRelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,19 @@ jobs:
INDY_ARTIFACTORY_REPO_CONFIG: ${{ secrets.INDY_ARTIFACTORY_REPO_CONFIG }}
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

# WIP: Triggering a node Upgrade after Plenum has been updated
# triggerNodeUpdate:
# runs-on: ubuntu-latest
# needs: [release-infos, publish_artifacts]
# steps:
# - name: Repository Dispatch
# uses: peter-evans/repository-dispatch@v2
# with:
# token: ${{ secrets.NEOBOT }}
# repository: wadebarnes/workflow-trigger-test
# event-type: plenum-updated
# client-payload: '{"version": "${{ needs.release_infos.outputs.version }}"}'
triggerNodeUpdate:
runs-on: ubuntu-latest
needs: [release-infos, publish_artifacts]
steps:
- name: Convert to python version flavour
uses: hyperledger/indy-shared-gha/.github/workflows/pyVersionConversion.yaml@v1
with:
VERSIONTAG: ${{ needs.release-infos.outputs.VERSIONTAG }}
id: conversion
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.BOT_PR_PAT }}
repository: hyperledger/indy-node
event-type: update-node
client-payload: '{"pyVersion": "${{ steps.conversion.outputs.pyVersion }}", "debVersion": "${{ steps.conversion.outputs.debVersion }}", "email":"${{ github.event.pusher.email }}"}'

0 comments on commit f9bdcc4

Please sign in to comment.