Hello,
I have 2 workflows linked by the workflow_run feature.
When creating a release (= when pushing a git tag) :
- on the main workflow my github.ref is
"ref": "refs/tags/v0.2.0"
- but on the “workflow_run” one, my github.ref is still
"ref": "refs/heads/master"
…
Both ref are on the same sha.
My goal is to keep the “release” part of my workflows isolated, and trigger the “workflow_run” one only when tags are pushed AND the primary workflow completes successfully.
first one :
name: .NET Core
on:
push:
tags:
- '**'
branches:
- master
pull_request:
second one :
name: Upload Release Asset
on:
workflow_run:
workflows: [".NET Core"]
types:
- completed
Is this a known bug ? a known limitation ? is there a workaround ?