Skip to content

Commit

Permalink
manual test
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Schlarb <[email protected]>
  • Loading branch information
pSchlarb committed Apr 18, 2023
1 parent a12c8be commit af82462
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/manualDispatchTest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Triggered by test Tag

on:
push:
tags:
- test-v**

jobs:
taginfos:
name: get Tag infos
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get-release-info.outputs.version }}
versionTag: ${{ steps.get-release-info.outputs.versionTag }}
prBranch: ${{ steps.get-release-info.outputs.prBranch }}
BASE: ${{ steps.get-branch.outputs.branch }}
steps:
- name: checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: extract branch
id: get-branch
uses: hyperledger/indy-shared-gha/.github/actions/branch-from-tag@v1
with:
tag: ${{ github.ref }}
- name: get-release-info
id: get-release-info
uses: hyperledger/indy-shared-gha/.github/actions/get-release-info@v1
with:
versionString: "${{ github.ref }}"

triggerSovrinUpdate:
runs-on: ubuntu-latest
needs: [taginfos]
steps:
- name: Convert to python version flavour
id: conversion
run: |
pyVersion=$(echo ${{ needs.taginfos.outputs.versionTag }} | sed 's~v~~g')
if [[ ${{ needs.taginfos.outputs.versionTag }} == *"-"* ]]; then
pyVersion=$(echo $pyVersion | sed 's~-~.~g')
echo "pyVersion=$pyVersion">> $GITHUB_OUTPUT
else
echo "pyVersion=$pyVersion" >> $GITHUB_OUTPUT
fi
echo "debVersion=$(echo $pyVersion | sed -E 's/^([^\.]*\.[^\.]*\.[^\.]*)\.(.*)$/\1~\2/')" >> $GITHUB_OUTPUT
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.BOT_PR_PAT_NODE }}
repository: pschlarb/sovrin
event-type: update-sovrin
client-payload: '{"pyVersion": "${{ steps.conversion.outputs.pyVersion }}", "debVersion": "${{ steps.conversion.outputs.debVersion }}", "email":"${{ github.event.pusher.email }}"}'

0 comments on commit af82462

Please sign in to comment.