#github-actions (2022-07)

Discussions related to GitHub Actions

2022-07-01

Andy avatar

We have an action that runs some tests in firebase externally on Google Cloud. But the GitHub action is left running while it waits for almost 30mins. Is there any way to run actions in an async way with a call back?

Darren Cunningham avatar
Darren Cunningham

is the goal to save minutes or looking to have the workflow “pause/resume”?

Andy avatar

to save minutes

Darren Cunningham avatar
Darren Cunningham

GHA workflow invokes Google Cloud Function -> GHA workflow keeps chugging along/ends

Google Cloud Function runs Firebase bits -> Triggers GHA workflow to do the rest of whatever was happen

it’s not unified, but it gets the job done

Darren Cunningham avatar
Darren Cunningham

I think the feature request to create a on-demand callback is cool, but I also don’t see a clean way for GH to implement that where the compute you’re using isn’t still burning minutes

1
Darren Cunningham avatar
Darren Cunningham

though maybe you could finagle the manual approval step

Darren Cunningham avatar
Darren Cunningham

trigger cloud function w/workflow run ID as an arg and it runs the firebase bits then does a GH API call to approve the workflow to keep running?

1
Jim Park avatar
Jim Park

Reviving zombies here, but why not POST an authenticated workflow_dispatch?

Jim Park avatar
Jim Park

Alternatively, if costs is the ultimate concern, you might compare the cost of a small self hosted runner

Andy avatar

Thanks for the suggestion @Jim Park

Andy avatar

I guess that could work, one concern is the detachment between jobs and getting easy visibility of whether the “entire pipeline” completed.

2022-07-20

2022-07-28

actions Archives | The GitHub Blog avatar
actions Archives | The GitHub Blog
09:15:39 PM

GitHub CLI extension to manage Actions cache GitHub CLI extension to manage Actions cache

3
    keyboard_arrow_up