Trying to test my workflow with new tags #1465
Unanswered
kristianstarkloffjedox
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to test a workflow locally in the situation that a new tag was added to any branches. When a tag is added, a private action should be triggered. So, this is my workflow yaml file:
The private action does not much as it is calling some
curl
commands. The private actions looks like this:Now, when I call
act
like thisact push --secret-file=.secrets --env-file=.env -W .github\workflows\testing-new-gh-action.yml -e tag_push.json -v --rm
I see in the output ofact
these lines regarding to theif
-query of the actionSome lines above I see this output:
So, this seems to be the reason why the
startsWith
part does evaluate tofalse
.But some lines above I see this output:
I assume this belongs to the part where github repos are checked out.
So somehow
act
seems to change the values and I don't know why.My
.env
file looks like this:And my
tag_push.json
looks like this:Beta Was this translation helpful? Give feedback.
All reactions