#github-actions (2022-06)

Discussions related to GitHub Actions

2022-06-06

2022-06-08

Aumkar Prajapati avatar
Aumkar Prajapati

Quick question for you all, say I have two paths

on:
   push:
       paths:
             X
             Y

Is there any specific variables that actually contain the folder path that actually triggers the “on push” call in Github Actions? Say I want it to build a specific application in folder X and need to navigate this monorepo to actually do so

managedkaos avatar
managedkaos

I think you want this one:

GITHUB_WORKSPACE	The default working directory on the runner for steps, and the default location of your repository when using the checkout action. For example, /home/runner/work/my-repo-name/my-repo-name.

So if you want to build on X, you can checkout the code and do:

cd ${GITHUB_WORKSPACE}/X
Aumkar Prajapati avatar
Aumkar Prajapati

Yeah workspaces + looking into matrix seems to help

2022-06-10

actions – The GitHub Blog avatar
actions – The GitHub Blog
01:55:36 PM

GitHub Actions: Inputs unified across manual and reusable workflows GitHub Actions: Inputs unified across manual and reusable workflows

GitHub Actions: Inputs unified across manual and reusable workflows | GitHub Changelogattachment image

GitHub Actions: Inputs unified across manual and reusable workflows

2022-06-13

actions – The GitHub Blog avatar
actions – The GitHub Blog
05:45:38 PM

GitHub Actions: macOS 12 for GitHub-hosted runners is now generally available GitHub Actions: macOS 12 for GitHub-hosted runners is now generally available

GitHub Actions: macOS 12 for GitHub-hosted runners is now generally available | GitHub Changelogattachment image

GitHub Actions: macOS 12 for GitHub-hosted runners is now generally available

2022-06-14

2022-06-16

2022-06-17

Andy avatar

Is there a particular scripting language that is recommended to use as an alternative to unwieldy BASH scripts in github actions?

Andy avatar

Ideally I’d prefer to use python - curious to know how people have found support for that compared to shell

Darren Cunningham avatar
Darren Cunningham

write better bash — if I’m doing something complex then I end up creating a Docker image and run the step as that

1
jonathan.herman avatar
jonathan.herman

@Darren Cunningham I’m new to all of this, I wrote a pipeline for my work in jenkins but it’s never had quite the performance I want it to have so I’m thinking about moving over to gha. Where do you get to those steps where you can write steps in bash / python make docker images etc. I shutter to say it but that stuff seems more straight forward in jenkins

Darren Cunningham avatar
Darren Cunningham

if performance is your key decision factor than GHA might not solve the problem. Hosted runners are not that powerful, you might have to use self-hosted runners; which is a pile of work alone.

Creating the Docker image is it’s own workflow which is pretty much just docker/build-push-action — but I push to a private ECR. Authentication to from GHA uses OIDC with aws-actions/amazon-ecr-login. Doing all of that is no small feat.

Darren Cunningham avatar
Darren Cunningham

Jenkins to GHA migration isn’t an easy one, the primary decision factor for me was not having to manage Jenkins itself. System updates, patches, etc. We were ok with pipelines taking a bit longer to startup/run in order to not have to manage that.

2022-06-25

2022-06-27

actions Archives | The GitHub Blog avatar
actions Archives | The GitHub Blog
03:25:37 PM

List and delete caches in your Actions workflows List and delete caches in your Actions workflows

List and delete caches in your Actions workflows | GitHub Changelogattachment image

List and delete caches in your Actions workflows

2022-06-29

Andy avatar

Anyone else here affected by the GitHub Actions outages? We use actions for our deployments so this is a real concern. How are other teams dealing with this?

RB avatar

We basically wait until they no longer have issues

RB avatar

And follow this page https://www.githubstatus.com/

GitHub Status

Welcome to GitHub’s home for real-time and historical data on system performance.

RB avatar

We like to subscribe to the rss feed of that page in slack to keep up to date with it

RB avatar
/feed subscribe <https://www.githubstatus.com/history.rss>
1
Darren Cunningham avatar
Darren Cunningham

HN updates faster than GitHub Status, see the second post

1
RB avatar

yep we’ve seen this with aws too

Darren Cunningham avatar
Darren Cunningham

it’s totally fair, we go crying to the internet while they’re scrambling to figure out (1) if it’s a real issue (2) how many customers are really impacted (3) make the executive decision to publicly disclose it (4) have the grammar and spelling of the post checked (5) post it. all that takes a whole lot longer than a HN rage post.

2
    keyboard_arrow_up