mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #179] how to trigger a tag event locally #123
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jonyhy96 on GitHub (Apr 1, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/179
act version 0.2.7
workflow:
tag.json
log:
questions:
@mced commented on GitHub (Apr 1, 2020):
@jonyhy96 Did you try to tag your code ?
@jonyhy96 commented on GitHub (Apr 1, 2020):
I tried tag locally and check out to the tag with:
But act still has the same log as above.
@mced commented on GitHub (Apr 2, 2020):
A workaround I personally use is to trigger an action (locally and on ga) on tags is to use a conditional like this but that won't work anymore on master pushes only for tags...
@jonyhy96 commented on GitHub (Apr 2, 2020):
I can't find any code handles the environment loads from
--env-fileflag.Is that a bug or am i missing something?
If we can use the
--env-fileflag, maybe we can specificGITHUB_REFto fake a tag event.@cplee commented on GitHub (Apr 23, 2020):
act should parse the event json and use for
on:branches and tags@third774 commented on GitHub (Apr 27, 2020):
@cplee is there an example somewhere of what the JSON shape should be for this?
@leepowelldev commented on GitHub (May 11, 2020):
@cplee I'd also be keen to know the shape needed to for
event.jsonto simlulate a tag push@cplee commented on GitHub (May 13, 2020):
@third774 and @leepowelldev - all events are documented, for example here's the link for
pushhttps://developer.github.com/v3/activity/events/types/#pushevent
@github-actions[bot] commented on GitHub (Jul 13, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@m0un10 commented on GitHub (Sep 1, 2020):
@cplee I tried the exact push event from the github documentation but it ignored the branch set and just used my actual branch. Is simulating the push branch supported?
@github-actions[bot] commented on GitHub (Nov 1, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@catthehacker commented on GitHub (Nov 24, 2020):
From what I understand
actdoesn't know how to trigger tag push as of right now. The only reason whypull_requestis understood via--eventpath/-eis because it's defined:github.com/nektos/act@b3299ecd30/pkg/runner/run_context.go (L471-L474)I've added the option to push specific tag via--ref, e.g.--ref 'refs/tags/v3.3'@m0un10 commented on GitHub (Nov 25, 2020):
Thanks @CatTheHacker. That is useful to know. Are you planning to raise a PR?
@github-actions[bot] commented on GitHub (Jan 16, 2021):
Issue is stale and will be closed in 14 days unless there is new activity
@pwoolvett commented on GitHub (Feb 11, 2021):
unstale
@mxxnhxTW commented on GitHub (Mar 10, 2021):
Is the code that @catthehacker commented merged to the latest version of act?
It still doesn't work properly for push tag event on act version v0.2.20
@giggio commented on GitHub (Aug 9, 2021):
I just tried
act --ref 'refs/tags/2.3.1'and it still doesn't work, I guess it is not yet implemented.@catthehacker commented on GitHub (Aug 9, 2021):
outdated@rooom13 commented on GitHub (Feb 6, 2022):
Did anybody find a way of passing any arguments for testing different
github.refvalues?@catthehacker commented on GitHub (Mar 1, 2022):
https://github.com/nektos/act#events
@catthehacker commented on GitHub (Mar 1, 2022):
Add simple example: https://github.com/nektos/act/wiki/Beginner's-guide#using-event-file-to-provide-complete-event-payload