Questions tagged [github-actions]

63 questions
6
votes
2 answers

How do I prevent a given GitHub Workflow from being launched twice from two almost simultaneous events?

I have a repo, in which there is one folder at the root with a Makefile to build a C library. In the same repo, there is another folder at the root with a folder with another Makefile for building a node C addon via Node-API, and a small JS/TS API…
3
votes
1 answer

decode base64 Github Secrets

I am setting up a pipeline to run Cypress automated tests using github actions/workflows on my code anytime there is a push to the repo. I came into a scenario where I want to generate dyanmic .env files depending on the branch , so instead of hard…
uneeb meer
  • 153
  • 1
  • 4
3
votes
1 answer

Incorporating python linter(flake8) in the CI/CD pipeline that use GitHub, Github Actions in a code base that is not in compliance

I have a codebase that is not in compliance with flake8. The CI/CD pipeline uses GitHub/GitHub actions. I would like to start adding python flake8 (to check for complexity, errors and code smells) progressively. How can I accomplish this task?
3
votes
3 answers

pypa/gh-action-pypi-publish token value 'does not start with "pypi-"'

I am trying to use the pypa/gh-action-pypi-publish action in GitHub to push a Python package to PyPI. I'm in the team that owns microbiomedata/nmdc-schema and successfully uses a GitHub action to deploy the nmdc-schema. I have also read PyPA's…
Mark Miller
  • 141
  • 5
3
votes
1 answer

GitHub Actions Runner execute commands with sudo GitHub Actions

I have a GitHub action set on self hosted Ubuntu VPS on Linode. I ran sudo ./svc.sh install and then ./svc.sh start. The runner is up and working but I have a command in my yaml file that needs to run as sudo. I have this command in sudoers file to…
Takasur
  • 161
  • 1
  • 4
2
votes
1 answer

What are the differences between Azure DevOps (Pipelines) and GitHub Actions?

My team is thinking of switching from Azure DevOps to GitHub Actions, currently we are using Azure DevOps Pipelines to handle code deployments. Our release pipelines are configured in a way where they are multi-staged whereas each stage is an…
2
votes
1 answer

How to upload a file as user input in Github Actions workflow?

I would like to upload .env file to a build in Github Actions. Is there any way I can do it?
Nitesh B.
  • 121
  • 4
2
votes
1 answer

Can we run github actions inside a docker container?

Is it possible to run github actions inside docker container like jenkins?
user48951
  • 23
  • 3
2
votes
1 answer

Why should I tag a commit to create a release?

I work on a new CICD, replacing Jenkins-X 2 by GitHub Actions. After seeing a lot of actions to create a release + changelog, I found that a lot of them are trigger by a tag on a commit to launch the workflow. For now, I create a new release on…
benCat
  • 71
  • 1
  • 6
2
votes
1 answer

How to configure EC2 inbound rules for GitHub Actions deploy

I have a GitHub Actions workflow to deploy a service to an EC2 instance. I have currently opened the SSH access to all IPs but I want to restrict this to IPs used by GitHub Actions runners. However, by default AWS limits the inbound rules to 60 IP…
RichardM
  • 123
  • 3
1
vote
1 answer

Concat strings in a github context

How do you concatenate strings in a GitHub CI? I want to concatenate a variable coming from matrix. and with another part of the path. I've tried using join() it doesn't work. name: ${{ join( [matrix.plugin.name, '/artifacts'], ',' )…
Evan Carroll
  • 2,921
  • 6
  • 37
  • 85
1
vote
2 answers

How does Github Actions handle optional workflows?

I have two work workflows in a repository. An optional workflow that builds an image. Uses the latest image created by the optional workflow to generate artifacts. Not every push builds image, but every time an image is built the job that…
Evan Carroll
  • 2,921
  • 6
  • 37
  • 85
1
vote
1 answer

Auto update golang version that is defined in a go.mod file using Dependabot

Dependabot has been enabled and is creating PRs, but not for the Golang version that is defined in the go.mod file.
030
  • 13,383
  • 17
  • 76
  • 178
1
vote
1 answer

What would be the best approach or tool to deploy one-off SQL scripts?

A vendor is supplying one-off "hot fixes" and I am trying to streamline these deployments best I can. Currently I am going out to an FTP site, downloading the SQL scripts and manually deploying them against the various database environments. A few…
1
vote
1 answer

Does Github Actions support anything but Ubuntu?

I see in my Github actions runs-on: ubuntu-latest What other distros are available? For example, can I run on Alpine or Debian?
Evan Carroll
  • 2,921
  • 6
  • 37
  • 85
1
2 3 4 5