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
2
votes
0 answers

Always getting a 409 when I try to merge via Github API

I've developed this github action that propagates any new merge from master/main to some chosen branches. It has been working all good for years, but these last... weeks? months? (not quite sure when it started to fail) in a private repo I've…
Alter Lagos
  • 12,090
  • 1
  • 70
  • 92
2
votes
1 answer

How to set different commits on which sequential GitHub actions runs?

I'm having a problem with correctly setting up CI using GitHub actions. I created one workflow with 2 jobs. First job autoformats the whole project using Google-Java-Style action. After success it creates a new commit with changes and starts a…
2
votes
2 answers

How to assign Github Action ENV variable to another step ENV definition?

How to assign ENV variable to another step ENV block? I've tried every combination and it doesn't work. Var is set in one step - name: Set ENV var run: echo "CUSTOM_VAR=IT WORKS" >> $GITHUB_ENV Var is used in another step via bash script, run…
lima_fil
  • 1,744
  • 27
  • 34
2
votes
0 answers

How can I build a github action by using a public docker registry container?

I am trying to create a simple docker action but instead of using the local Dockerfile in the repository I want to use a public on dockehub. I have created two repositories: docker-creator: which has the docker action docker-user: which is a job…
2
votes
1 answer

Get CloudFormation stack output into GitHub Actions

Build my AWS stacks from CloudFormation templates. Some stacks produce outputs for example security keys and/or endpoints. For example, my analytics stack creates a user for analytics API server and makes a couple of AWS keys: CubeJsUserAccessKey…
2
votes
1 answer

Run R RMD file with GitHub Actions

I have two repositories that I update daily by simply opening the project in RStudio and knitting the RMD file, then pushing the results to the repo. I would love to automate this with GitHub actions but I find the documentation highly confusing. Is…
MCP_infiltrator
  • 3,961
  • 10
  • 45
  • 82
2
votes
1 answer

How do I inject environment variables and secrets into Github action pipeline using config.json

How do I inject secrets and environment variables residing in my config.json to GitHub action in nodejs? For instance { apiKey: "blablabla", apiId: "anotherblabla" }
2
votes
2 answers

How to test input that should fail for a custom GitHub action in a workflow?

I have a custom GitHub action that encapsulates a linter using a Dockerfile. On push I want to verify that the linter works correctly, that is it should succeed on correct input and fail on incorrect input: .github/workflows/test-action.yml name:…
Konrad Höffner
  • 11,100
  • 16
  • 60
  • 118
2
votes
1 answer

allowProvisioningUpdates not working in automatic signing fastlane

I'm trying to upload build through Github action but i'm stuck in the last point. I'm trying to upload build through automatic signing. But every time got the error. FastFile:- platform :ios do lane :closed_beta do keychain_name =…
2
votes
1 answer

How to trigger workflow action if it touches certain file or is a Pull Request with a certan file

I have the following action: name: Run after changing anything in myPath package on: pull_request: push: paths: - 'myPath/**' This action runs when something is pushed under myPath but also on any pull request. How I can limit this…
pixel
  • 24,905
  • 36
  • 149
  • 251
2
votes
1 answer

Dotnet build on Github runner (Ubuntu) fails with 'N/A' is not a valid version string

I build a dotnet project on Ubuntu (18.04.4 LTS) with a Github runner (running as root). The build unpredictably fails (2 successful runs and then fails every time). The same build command works every-time when run from command-line directly: dotnet…
2
votes
1 answer

Github Actions outcome is not retrieved

I'm attempting to run the following .yml with GitHub Actions, but the outcome from the steps is not retrieved or null. The documentation for outcome is here. name: run test for outcome on: workflow_dispatch: jobs: run-test-for-outcome: …
2
votes
1 answer

Github Actions Substitute String before Deploying

I am trying to develop a Github Action to update the Version Number and DB credentials in my (mostly) php files before uploading to a FTP server. Inside my main branch, I have a textfile called VERSION.md with the content 2.0.1. The action should…
2
votes
0 answers

GitHub Action - trigger on push from branch A to branch B, but not fork to branch B

My Repo has Branches Apple, Banana & master. I want to run the action when I push from Branch Apple to Branch Banana, but NOT when Pull Requests are merged into Branch B. Current Draft of the action starts as; on: push: branches: -…
Jayden
  • 129
  • 4
2
votes
2 answers

GitHub Actions - How To Work With TypeScript

The Problem I'm doing a custom GitHub Action for the Marketplace, to make it easier to use in other projects. The Action is made with TypeScript, and uses some packages, like typescript, babel (edit: don't use babel anymore), @actions/core and…
user13158171