Skip to content

Workflow that triggers after-release actions #235

Workflow that triggers after-release actions

Workflow that triggers after-release actions #235

name: Workflow that triggers after-release actions
on:
workflow_run:
workflows: ["Release"]
types:
- completed
jobs:
notify:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
outputs:
version: ${{ steps.get-version.outputs.VERSION }} # Define job output
steps:
- name: Get the released tags version
id: get-version
run: |
REF="${{ github.event.workflow_run.head_branch }}"
VERSION=${REF/refs\/tags\//}
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT" # Use GITHUB_OUTPUT
- name: Trigger repo publishing
uses: peter-evans/repository-dispatch@v3 # Use a more current version
with:
token: ${{ secrets.GHA_PAT_BASIC }}
repository: ethersphere/repos
event-type: publish-repos
client-payload: '{"package": "bee", "tag": "${{ steps.get-version.outputs.VERSION }}"}'