Fix metadata.github.ref on push and tag
This commit is contained in:
parent
273d461f6a
commit
9c988c764b
@ -19,7 +19,10 @@ tasks:
|
||||
then: "tag"
|
||||
else: "push"
|
||||
login: ${event.pusher.name}
|
||||
ref: ${event.ref}
|
||||
ref:
|
||||
$if: 'event.ref[:10] == "refs/tags/"'
|
||||
then: ${event.ref[10:]}
|
||||
else: ${event.ref[11:]} # then it's refs/heads/...
|
||||
sha: ${event.after}
|
||||
clone_url: ${event.repository.clone_url}
|
||||
in:
|
||||
|
Loading…
Reference in New Issue
Block a user