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
0
votes
0 answers

Complete list of attributes on the `context` object of GitHub Actions

I had a hard time trying to find specific attributes or data that could be useful while writing some GitHub Actions so I decided to log out everything in the context object and put it all in one place. Hope this is helpful to others. For clarity,…
0
votes
0 answers

How can I use GitHub actions to copy a folder between branches?

I'm trying to use GitHub actions to copy a folder from one branch to another. I have a repository with a collection of notebooks on the main branch. I also have a branch for the JupyterBook. I would like to create an action that would take the…
0
votes
1 answer

AZ CLI Issue - Github Actions Self hosted runner

I get the error shown in screenshot below while trying to fetch Azure key vault secrets using Azure CLI from github actions. The error says Please run 'az login' to setup account. As one can see, the AZ login was successful in the previous step.…
0
votes
1 answer

Get Github action output from previous step

I am building my own Github-actions repository. I am trying to use the output of an action in the following step, but I could not manage to do so. This is a minimal example with what I want to do: I have an action that do some stuff and stores an…
0
votes
0 answers

Define nested variable in Github actions?

I would like to define some nested env variables like this: name: push-deploy-docker on: push: branches: - 'develop' - 'master' env: AWS_ENV: "${{ github.ref_name == 'master' && 'prod' || contains(github.ref_name, 'release') &&…
Chris Dao
  • 35
  • 5
0
votes
0 answers

Github Actions Workflow npm acces denied

This is my .yml file name: Automated API tests using Postman CLI on: push jobs: automated-api-tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Setup Node.js uses:…
0
votes
2 answers

Github reusable workflows: use parameterized "uses"

I am trying to build my reusable workflow in such a way anyone in my team can hook up with it, pass the variable that it needs, and the workflow decides what to do according to input received. The problem I am having comes when within such workflow,…
0
votes
0 answers

Is it possible to actually show the changes made by first workflow (to the repo) to second workflow?

I've 2 workflows with the names update_workflow.yml and build.yml. As the name states, update_workflow.yml fetches the changes from the upstream repo and rebase my changes on top of it everyday. While the buidl.yml builds the build depending on the…
0
votes
0 answers

Link to a build in GitHub Actions like the Jenkins PR Builder plugin

I have a GitHub Actions workflow that runs when a PR is opened and when any further commits are pushed to the PR's branch. I used the Jenkins PR builder plugin previously. There, it was possible to post a link to the PR associated with the PR check…
Roy Tinker
  • 10,044
  • 4
  • 41
  • 58
0
votes
1 answer

Github actions token workflow not set error

Hello everyone I am currently writing a workflow to auto merge when a pull request is made but I am stuck at an error telling me my token is not set more specifically: 2023-02-19T02:09:08.581Z ERROR environment variable GITHUB_TOKEN not set!. I…
0
votes
1 answer

Pusher referencing development app key in production

I've been trying to diagnose an issue with pusher not working on production, when it works fine locally. This morning I discovered after tinkering around in the console, that when I do this on production: Echo.private('App.Models.User.1'); I get…
hyphen
  • 2,368
  • 5
  • 28
  • 59
0
votes
0 answers

Existing GitHub Pipeline Broken

I got a error while running github actions pipeline with the repository isn't found. workflow.yml name: CI on: push: branches: [ master ] workflow_dispatch: jobs: deploy: # needs: build runs-on: ubuntu-latest name: Deploy …
0
votes
1 answer

GitHub Actions Failing to Release to PyPI because Python Version Is Not Recognized

I'm trying to get some CI/CD experience with GitHub Actions to put on my resume so I tried to automate the publication/release process of my python package to the PyPI website. But so far the build fails because it doesn't detect that I have python…
0
votes
1 answer

Can I reference input events in the "post-if" condition in GitHub Action?

I have a GitHub Action that can be triggered via the GitHub UI (with workflow_dispatch), which has a boolean flag as one of the inputs. What I want to do is this - set a condition in post-if that is evaluated to true only if the user-provided flag…
Paul Razvan Berg
  • 16,949
  • 9
  • 76
  • 114
0
votes
0 answers

Poetry action on different matrix OS

I (try to) set up poetry-action according to their tutorial. After several experimental commits, I came to this "action" and "workflow". However, it does not run on all matrix.os I support action :…