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
1 answer

Run deployment workflow if tests workflow is passed

I have the following two workflows: Workflow to run test suite Workflow to deploy the code, using https://github.com/miloserdow/capistrano-deploy Now when I push my code, both workflows started. I want deployment Work to only start once Test Suite…
kashif
  • 1,097
  • 4
  • 17
  • 32
2
votes
0 answers

Firebase Hosting - Preview Channel blocked (reason: forbidden)

I'm setting up Firebase's new Preview Channels (very excited for). I have set up their standard Deploy to Preview Channel workflow, and it does deploy and post the comment! However, when I click the link and try to log into my site, I get the…
Rbar
  • 3,740
  • 9
  • 39
  • 69
2
votes
1 answer

Use Github Actions to make API get request and save data to repo

I would like to set up a GitHub actions workflow that: Makes an API request to another site (outside of GitHub), which returns JSON. Add (commit) that JSON to my repo I have an action that looks like below. It appears to run correctly, and the log…
relizt
  • 375
  • 2
  • 11
2
votes
0 answers

How to create a Docker container GitHub Action to provide executable for the main workflow?

I want to implement my own Docker GitHub Action that should provide an executable called my-tool which I can use in my workflows. Ideally, I want to be able to write the following config in my workflow: - name: Setup My Tool uses:…
2
votes
1 answer

Install env-cmd on github

I'm manually setting up the environment variable depending what build I'am using ( QA or PROD ) and I'm using github actions to deploy my qa build.. So change the script from npm run build to env-cmd -f ./.env.qa node scripts/build.js. The problem…
2
votes
2 answers

GitHub Actions fails when NLTK "punkt" is needed

I have written some code which needs to use NLTK's punkt. I have included nltk in the requirements.txt and in the setup.py. However, when I run the build of my project using GitHub actions, it fails with this error. E LookupError: E …
2
votes
1 answer

Django Settings and GitHub Action Secrets

I have a Django project and am using a Postgres database. I want to figure out a simpler way to store my credentials locally and on Github so that I can run tests in both places but where none of my sensitive info is in the git repo. Even though…
Alex
  • 1,891
  • 3
  • 23
  • 39
2
votes
0 answers

Github Action: [!] Error: Cannot find module 'rollup-plugin-commonjs'

In my package.json there are rollup and rollup-plugin-commonjs but inside github actions it could not find those packages! If I do not add rollup in global package installation step of github-action it shows that rollup is not found. But after…
Ashik
  • 2,888
  • 8
  • 28
  • 53
2
votes
1 answer

Cannot cache dependencies on Github Actions using Pipenv

I am trying to cache dependencies for a Github Action workflow. I use Pipenv. this is my config: - uses: actions/cache@v1 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile') }} …
COB
  • 236
  • 1
  • 14
2
votes
0 answers

how to run `prisma deploy` inside github-action

I have built and run docker-compose. it is showing that it runs on localhost:4466 on GitHub action. but the problem is, when tried to deploy it, I am getting the following error: Could not connect to the server at ***. Please check if your server is…
Ashik
  • 2,888
  • 8
  • 28
  • 53
1
vote
1 answer

How can I push changes to a private repository using github actions

The problem I'm trying to push changes to my repository using Github Actions. The changes consists of appending the README.md file with a link each time a new markdown file is created within the projects/ directory inside my repo. My repo is private…
1
vote
0 answers

How to mock @actions/github?

I have a GitHub action that is running on node. My node js file looks like this: import fs from 'fs'; import * as core from '@actions/core'; import * as github from '@actions/github'; import { Octokit } from '@octokit/rest'; async function…
Nespony
  • 1,253
  • 4
  • 24
  • 42
1
vote
2 answers

Github Action .NET Windows SDK error on build

I try to build a native .NET application with Github actions. After 2 days of trying and searching i will ask here. The project is a solution with .NET 4.6.1 and React Native (both not updateable for legacy code reasons). When i run the ci it always…
1
vote
0 answers

Wrapping an existing node cli tool in a GitHub action

I'm still figuring out creating a custom GitHub Action and have a question. How I use the node CLI tool I install the npm package in my repo. I add a build script in the package json file, e.g. "build": "clitool --foo bar" This cli tool is able to…
1
vote
1 answer

How do I pass a Github secret into kubernetes yaml files using github actions workflow

I want to use github actions to deploy a kubernetes secret to my cluster but I want to leverage the secrets in github actions to store the secret value and inject into my manifest file. I'm new to github actions so not sure how it can be done This…