Questions tagged [building-github-actions]

Questions should be tagged with building-github-actions if the question is about creating custom actions like the examples in https://github.com/actions. Questions should not be tagged with this tag if the question is about using GitHub actions/writing GitHub Actions yml files.

From the documentation:

Actions are individual tasks that you can combine to create jobs and customize your workflow. You can create your own actions, and use and customize actions shared by the GitHub community.

There are some sample actions here but this tag is about building own actions.

Currently, there are 2 types of actions:

177 questions
1
vote
2 answers

How to deploy atefact on EKS with GithubAction and OIDC

I have a private EKS cluster and I'm trying to deploy some services on it using GithubActions. It works ok when I pass account credentials as a secret, and kubeconfig file as well. Like this: name: Release on: pull_request: branches:…
1
vote
1 answer

Why does my GitHub action not run on branch push, despite push on that branch and workflow triggers

I've been getting started with GitHub Actions (and git/bash). I have tried (one after another) a workflow with the following triggers: on: push: paths: - contribute-pages/** - documentation-pages/** - general-pages/** -…
Koen
  • 153
  • 5
1
vote
2 answers

Act Not able to Use Docker API

I am trying to locally test github actions with the open-source Act utility. "Think globally, act locally" I have copied the git hub repository for which i want to check github action and it does contains .github/workflow folders. I run this…
1
vote
1 answer

Use local.properties in build.gradle with Github Secrets when using Actions

I am trying to replace API keys located in local.properties with Github Secrets values when using Github Actions. The key is declared as follows in local.properties: sdk.dir=/Users/xxxxxxx/Library/Android/sdk API_KEY="xxxxxx" Then, in my…
1
vote
1 answer

Github action to lint after commit in previous step

I'm setting up Github action to lint the OpenAPI Spec using Spectral. Before linting, I would like to generate the single file spec and commit it. I have set up a workflow that will first build and then lint. But the problem is, the lint is not…
Ibrahim
  • 1,341
  • 1
  • 11
  • 24
1
vote
1 answer

If I have the .yml file (containing workflows/jobs/actions) in multiple branches, which one is the active?

Let's say I have two branches, 'main' and 'work' - they both are the exact same project, however there's one difference - the 'work' branch contains a slightly different workflow (for example, one contains a conditional statement if: ${{…
1
vote
2 answers

How to locally test and simulate scenarios for GitHub Actions development

Context I'm developing a GitHub Action that allows managing Repositories Issues based on my company policies (like greeting the user, changing the tags based on interactions and sending messages to Ryver's Chat when it is required). For the sake of…
Fingolricks
  • 1,196
  • 2
  • 14
  • 30
1
vote
1 answer

Ignore projects in GitHub workflow

I have a solution with 5 projects all using dotnet5 except one (AZ functions) which uses dotnet3.1. My build action fails with The framework 'Microsoft.NETCore.App', version '3.1.0' was not found.. Is it possible to: Set which project to build,…
wmmhihaa
  • 744
  • 8
  • 21
1
vote
1 answer

How to goreleaser to build sub-folder in github

I use goreleaser to build in github action. Because my main.go in ./cmd/tes_cli, it always show error in github action. repo does not contain a main function. I check the original document, it seems "builds" could works. my configuration could not…
Evan Lin
  • 1,272
  • 1
  • 12
  • 25
1
vote
0 answers

What values I should configure in my github actions secrets in order to sign my apk?

According to this answer I should run te following command in order to build an apk and sign it? ./gradlew assembleRelease -Pandroid.injected.signing.store.file=$KEYFILE -Pandroid.injected.signing.store.password=$STORE_PASSWORD…
Dimitrios Desyllas
  • 9,082
  • 15
  • 74
  • 164
1
vote
1 answer

Copy file from Docker container to Github repository

I have a Dockerfile and a tex file in my repository. I use Github Actions to build an image(ubuntu 18.10 with packages for PDFLaTeX) and run a container, which gets main.tex and produces main.pdf with PDFLaTeX. So far everything seems to work OK,…
1
vote
1 answer

Does dockerized github actions support network options for docker run parameters

I am using self hosted github runners for vpn access to some software and I am trying to use a dockerized github action on the self hosted runners but I am having issues because I need to specify the --network host flag when github action runs…
1
vote
1 answer

Migrating to GitHub Actions from Travis keeps failing

I am currently completing a migration from travis CI to Github Actions CI however my build keeps failing when the container tries to connect to my test DB. Its a very generic error UNKNOWN_CODE_PLEASE_REPORT: An internal error has occurred. Please…
1
vote
1 answer

How To Use Ruby Which is Installed on Self Hosted Runner Of Github Workflow {ruby/setup-ruby }

I have a self hosted runner for Git hub workflow ,which requires Ruby for the execution .. I tried to use ruby/setup-ruby which is a prebuilt ruby ..But when I use that it gives me a error as below Unable to locate executable file: 7z. Please…
1
vote
1 answer

Build Specific Dockerfile from set of dockerfiles in github action

Consider we Have 10 Docker files but i made some changes only in 1 Docker file.so In Github action we generally build all 10 docker files instead of 1 docker file. So Is there any way to write conditions such that github actions should build that…