Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [github-actions]

GitHub Actions allows you to easily automate your software workflows. Use this tag for questions regarding help on creating a workflow. If you need help on GitHub Actions in general, consider contacting GitHub by emailing their support (support.github.com/contact) or by asking in GitHub's Community Forum (github.com/orgs/community/discussions.

4,854 questions with no upvoted or accepted answers
28 votes
0 answers
7k views

Github actions: use env variable on another env variable?

I'm trying to reuse some common variables that act as bases for other variables. But I'm not sure how to reuse it. In my workflow I tried this: env: REGISTRY: ghcr.io MY_REPO: ${{ env.REGISTRY }}/...
Andrius's user avatar
  • 20.8k
15 votes
0 answers
5k views

How to remove an environment variable on GitHub actions?

Context On https://docs.github.com/en/actions/learn-github-actions/environment-variables they describe a way to add an environment variable with yaml: jobs: job_name: env: NAME: value On ...
TWiStErRob's user avatar
  • 46.1k
14 votes
4 answers
22k views

ERROR Backend subproccess exited when trying to invoke get_requires_for_build_sdist

I used the Upload Python Package workflow on GitHub to upload the module stored in the repository to PyPI. As you can see at the link above, I followed the tutorial given by packaging.python.org, to ...
FLAK-ZOSO's user avatar
  • 4,018
13 votes
2 answers
3k views

Is it possible to loop a GitHub Actions step?

I have a GitHub Actions workflow dealing with new releases. Some last steps build the application for different platforms. Instead of creating multiple steps where each one builds for a different ...
baitendbidz's user avatar
13 votes
0 answers
3k views

GitHub-Actions: Trigger on creation of Draft of GitHub-Release

To simplify the release of a new version, I want to use GitHub-Actions to build my project. This should be triggered by creating a release-draft. Basically, the workflow should be as follows: When a ...
MonsterDruide1's user avatar
12 votes
2 answers
4k views

Github workflow_dispatch input dynamic values

I want to invoke a workflow manually and letting the user select a tag value as an input to that workflow on: workflow_dispatch: inputs: DEPLOY_VERSION: description: 'Tag Version (...
Alex Portnoy's user avatar
11 votes
0 answers
2k views

How can one view line-by-line code coverage in GitHub?

I have a Node.js project, which includes Istanbul, a tool that can generate a code coverage report. I would like to see which lines are not covered and which are covered by tests in my GitHub Pull ...
Shafique Jamal's user avatar
10 votes
0 answers
552 views

What status checks can be used for GitHub organization rulesets

When using branch protection on a repository, you can specify Require status checks to pass before merging. You can search for a job that is used by one of your workflows within the repository by ...
Vincent Verweij's user avatar
10 votes
1 answer
2k views

GitHub Actions: can I dynamically generate and run a child workflow?

We are migrating from gitlab to github. With gitlab pipelines I am checking the repository and dynamically generating a child pipeline with the actual jobs to run. This is easiest explained by the ...
Lukas Rieger's user avatar
10 votes
0 answers
431 views

Creating a publicly distributed Jupyter Notebook from Github repo

I have an online course (Performance Ninja), which I would like to turn into a publicly distributed Jupyter Notebook. The course is hosted on Github. There I have the source code for the lab ...
Denis Bakhvalov's user avatar
10 votes
1 answer
5k views

Automatically deploying docker-compose on DigitalOcean via Github

I am a newbie when it comes to docker. I have a web app that contains 4 services. I manage to create a docker-compose for it. I would like now to publish it. My plan is to upload the whole repository ...
Gil SH's user avatar
  • 3,848
9 votes
0 answers
3k views

Is there a way to exclude files from CodeQL scanning on GitHub

I had tried using paths-ignore that I read about from https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning ...
DevopitionBro's user avatar
9 votes
1 answer
3k views

trigger github action only when new tags on master branch

In this question Trigger Github Action only on new tags? I can trigger the build on new tag. name: CI on: push: tags: - 'v[0-9]+.[0-9]+.[0-9]+' But if I'd like to add another condition, ...
BMW's user avatar
  • 44.5k
9 votes
1 answer
1k views

How to reuse an environment between jobs?

I have a simple workflow for my home app (front and back), all in one job, running on self-hosted runners: prepare environments for the builds (apt install ...) build the front to a directory spa ...
WoJ's user avatar
  • 29.2k
9 votes
0 answers
207 views

How do I use dependency caching for GitHub actions when listening to development_status events?

I'm following this tutorial on using preview deployments to run Cypress against, but I don't want to sacrifice dependency caching. Is there a workaround I can reach for? So far: I've tried using ...
Kyle Holmberg's user avatar

15 30 50 per page
1
2 3 4 5
324