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

Github action input without parameters

I have the following github code, it doesn't take input parameters, I just need it to be able to execute the action on github when I want. But github marks me as a warning, how can I do? on: workflow_dispatch: inputs: name:…
Paul
  • 3,644
  • 9
  • 47
  • 113
1
vote
0 answers

Can't run a Docker container GitHub Action locally using Act

I want to create a GitHub Action that uses docker and want to run it locally using act. When I execute the act command, I get the following error: Error response from daemon: pull access denied for act-github-actions-dockeraction, repository does…
SkogensKonung
  • 601
  • 1
  • 9
  • 22
1
vote
1 answer

How to save output of python function to GitHub actions?

How can I save the output of a Python function in mine GitHub Action code? def example(): return "a" if __name__ == "__main__": example() I tried to save to a variable, output and environment variable but it does not work. It only saves…
may
  • 1,073
  • 4
  • 14
  • 31
1
vote
2 answers

GitHub Actions failed to find cdk command although it was installed from the previous jobs

I expected to preset the environment of node and then it installs aws-cdk which will be used for the matrix-ed jobs which are supposed to be an efficient solution for execution. Here is basically my script: jobs: setup: runs-on: ubuntu-latest …
1
vote
0 answers

How to define sequence/list inputs for custom github actions?

I have a custom GitHub action defined via Node.js that I'd like to be able to pass input to as a sequence. I.e.: ... uses: ./path/to/action with: a: some value b: - some value 1 - some value 2 I.e. I would like to receive an array of…
Zach Smith
  • 8,458
  • 13
  • 59
  • 133
1
vote
1 answer

Github action did not make sqlfluff linting changes to a file

I am trying to set sqlfluff linting for dbt files by following the example on this example with some slight changes. My github actions yml file looks like: name: Run sqlfluff linter on: push: branches: - main - sqlfluff_ga2 …
1
vote
1 answer

GitHub Action: Pass npm package output to variable

I'm having trouble accessing the output of a global npm command in GitHub Actions. Running any global linting npm package (I've tried a few different ones) always exits with: Process completed with exit code 1.. The funky thing is, I can run these…
1
vote
1 answer

Github Actions workflow_dispatch choice not working

So, i have tried different versions of this, but i still cannot get it right. I have a github actions pipeline where i would like to insert a choice so people don't have to look for it in documentation: name: Echo message on: workflow_dispatch: …
Alex
  • 75
  • 7
1
vote
1 answer

Getting a issue while setting up the yml file for GithubActions

I am new at using Github Actions,Have written below ios.yml file and getting error like Error: Process completed with exit code 70. on execution. on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: name:…
1
vote
1 answer

Django Github CI cannot connect to mysql 'db'

Issue When trying to setup a Github action to test a Django project automatically, we ran into an issue with the django.yml setup. Whenever we ran the .yml, we got this exception on the last step (python manage.py…
1
vote
0 answers

How to update/cherry-pick other branches on push on specified branch?

I would like to create GitHub action that is triggered by push on specified branch X. This action will push/cherry-pick changes made on branch X to other branches. Example code: name: Cherry-pick on: push: branches: [X] jobs: …
1
vote
1 answer

Condition if in GHA need

I have following jobs: jobs: build: name: Build runs-on: [ self-hosted, linux ] steps: - uses: actions/checkout@v2 - name: Build run: dotnet build unit-test: name: Unit test if: github.event_name != 'release' runs-on: [ self-hosted,…
user122222
  • 2,179
  • 4
  • 35
  • 78
1
vote
1 answer

Github cli in Action not running workflow

Trying to setup a scheduled workflow that triggers a workflow with particular settings on different branches (which for us equates to different projects) - run: | gh workflow run 'full_branch_manual.yml' -F RunTests=true -F ValidateOnly=true …
Tony White
  • 143
  • 4
1
vote
0 answers

Github actions cannot run iOS tests

Hey I am trying to build a pipeline that should just run all of the tests of my scheme. The problem is that the iPhone simulator that should run the tests is on iOS latest I guess while my projects simulators are on 15.2 ? How can I change that. I…
1
vote
1 answer

GitHub Actions - Set two output names from custom action in Golang code

I have written a custom action in Golang, which has a function that makes two output names. The output names are created for later use in the workflow, so I can call the action in one job ("Calculate version"), catch the output names, and use it in…