Add: Actions Offline Mode #454
Reference in New Issue
Block a user
Delete Branch "TKaxv_7S/offline_mode_support"
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?
In some regions, connecting to github.com may not be as smooth.
So every time we using
uses:method, it is not a good way tofetchandpullthe current action content, and I think the action tag will also be rarely updated.We can add a configurable option in
OfflineModeto control it, setting the default value tofalse, so this will not affect other users.this pull code depend on act
OfflineModeact pull #2128Depend on https://gitea.com/gitea/act/pulls/90
Are there any downsides to enabling this by default? (https://gitea.com/gitea/act_runner/issues/556#issuecomment-824915 has some context)
It seems good to me to only pull action source only once per workflow instead of once per step.
Yes the described behavior makes sense and would probably better than the current default
To be honest only "when not present" (action offline mode e.g. this pr adds a flag) and "always" (current / no flag to alter act) are implemented
Both are extrems
This means you might get less updates than you expect as every tag or branch or tag is downloaded exactly once in offline mode and that is not scoped to workflows or anthing else
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.