Skip to main content
427 votes
35 answers
473k views

I'm building Docker images with GitHub Actions and want to tag images with the branch name. I found the GITHUB_REF variable, but it results in refs/heads/feature-branch-1 and I need only feature-...
aborilov's user avatar
  • 9,074
114 votes
7 answers
142k views

I'm trying to push to origin remote from GitHub action. The logic of my action is: handle pull_request_review events and filter by comment message checkout to master, merge PR branch, run some checks ...
Kirill's user avatar
  • 8,451
149 votes
7 answers
183k views

For (mainly) pedagogical reasons, I'm trying to run this workflow in GitHub actions: name: "We 🎔 Perl" on: issues: types: [opened, edited, milestoned] jobs: seasonal_greetings: runs-on: ...
jjmerelo's user avatar
  • 23.6k
95 votes
10 answers
83k views

I have been using github actions for quite sometime but today my deployments started failing. Below is the error from github action logs Command: git Arguments: ls-remote --tags --heads git://github....
monofal's user avatar
  • 1,968
304 votes
4 answers
327k views

In GitHub Actions, I'd like to evaluate a bash expression and then assign it to an environment variable: - name: Tag image env: GITHUB_SHA_SHORT: ${{ $(echo $GITHUB_SHA | cut -c 1-6)...
evilSnobu's user avatar
  • 26.7k
147 votes
16 answers
197k views

I have multiple environments (dev, qa, prod) and I'm using .env files to store secrets etc... Now I'm switching to GitHub Actions, and I want to use my .env files and declare them into the env section ...
HRK44's user avatar
  • 2,852
242 votes
6 answers
148k views

Trying to use Github's beta actions, I have two jobs, one that builds the code and then one that will deploy code. However, I can't seem to get the build artifact in deploy job. My latest attempt is ...
Labithiotis's user avatar
  • 4,307
157 votes
5 answers
151k views

I have one action (a yaml file) for deploying a docker image to Google Cloud Run. I would like to receive Slack or Email messages informing the build and push results. How could the message action be ...
CSSer's user avatar
  • 2,707
64 votes
8 answers
41k views

I'm trying to dynamically pull back a GitHub secret using GitHub Actions at runtime: Let's say I have two GitHub Secrets: SECRET_ORANGES : "This is an orange secret" SECRET_APPLES : "This is an apple ...
Mark McKim's user avatar
108 votes
4 answers
103k views

Is there a DRY way to calculate and share a value in multiple job steps with GitHub Actions? In the below workflow, echo ${GITHUB_REF} | cut -d'/' -f3-${GITHUB_SHA}` is repeated in multiple steps. ...
Casey Flynn's user avatar
  • 14.1k
16 votes
5 answers
18k views

Can I trigger a new workflow from another workflow? I'm trying to run a workflow after the first workflow has pushed a new release and it seems to ignore it.
bArmageddon's user avatar
  • 8,706
142 votes
5 answers
258k views

I have this GitHub Actions workflow which runs tests, but now I am integrating slack notification in it. I want to get the output of the Run tests step and send it as a message in the slack step. - ...
script's user avatar
  • 2,277
59 votes
6 answers
46k views

I have a workflow that uses 'strategy' = 'matrix' along with a list of specific configurations to build. Here is my workflow file: # # build-N-test-v2.1-Dev and build-N-test-v2.1-Release are nearly # ...
lewis's user avatar
  • 1,353
294 votes
12 answers
296k views

I'm relatively new to GitHub Actions and I have 2 jobs–one that runs my tests, and one that deploys my project onto a server. Obviously I want the tests to run on every branch, but deploying should ...
weakdan's user avatar
  • 3,196
240 votes
23 answers
127k views

Getting refusing to allow an OAuth App to create or update workflow .github/workflows/cd.yml without workflow scope" on git push. How to grant workflow scope?
Ara Yeressian's user avatar

15 30 50 per page
1
2 3 4 5
63