#github-actions (2021-07)

Discussions related to GitHub Actions

2021-07-07

tomv avatar

:wave: anyone ever call print("::set_output name=foo::bar") from python in a github action? for some reason my output never gets set

Darren Cunningham avatar
Darren Cunningham

set-output (dash, not underscore)

tomv avatar

that was a typo but after a few hours of head banging i finally figured it out, it wasn’t the print("::set-output") , it was that I was trying to reference a step output in a composite action that wasn’t exporting the output, if that makes any sense

Darren Cunningham avatar
Darren Cunningham

yup

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

aha, i was going to suggest a missing \n

2021-07-14

2021-07-25

2021-07-31

Vlad Ionescu (he/him) avatar
Vlad Ionescu (he/him)
attachment image

ICYMI: you can now easily cache Docker builds in GitHub Actions 15 minutes builds are now taking 1 minute

If you’re using @Docker’s build-push-action, it’s a 2-line change: cache-from: type=gha cache-to: type=gha,mode=max

Full details on https://github.com/docker/build-push-action/pull/406 https://pbs.twimg.com/media/E7pI2LZXIAAcuDi.jpg

cool-doge3
Mohammed Yahya avatar
Mohammed Yahya

yes and in terraform I cached .terraform folder and make it super quick

attachment image

ICYMI: you can now easily cache Docker builds in GitHub Actions 15 minutes builds are now taking 1 minute

If you’re using @Docker’s build-push-action, it’s a 2-line change: cache-from: type=gha cache-to: type=gha,mode=max

Full details on https://github.com/docker/build-push-action/pull/406 https://pbs.twimg.com/media/E7pI2LZXIAAcuDi.jpg

Mohammed Yahya avatar
Mohammed Yahya

also lock file

Vlad Ionescu (he/him) avatar
Vlad Ionescu (he/him)

^made a huge difference on a couple repos I manage. It’s beta, of course, but I did not notice any issues yet

    keyboard_arrow_up