#github-actions (2021-07)
Discussions related to GitHub Actions
2021-07-07
:wave: anyone ever call print("::set_output name=foo::bar")
from python in a github action? for some reason my output never gets set
set-output
(dash, not underscore)
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
yup
aha, i was going to suggest a missing \n
2021-07-14
2021-07-25
2021-07-31
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
yes and in terraform I cached .terraform folder and make it super quick
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
also lock file
^made a huge difference on a couple repos I manage. It’s beta, of course, but I did not notice any issues yet