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

Github actions pull request output link

I am using s3 bucket, to deploy my html website. Now I have created a github action that will deploy to s3 buckeet when pushed to main. Now I have created a develop branch and want to merge my changes to master using Pull Request, I have written…
Aniket Paul
  • 309
  • 1
  • 6
  • 13
1
vote
1 answer

Is there any way to have write access to the GitHub API from a github action?

I'm trying to do a simple thing: label a pull request (later objective is automerging, but bear with me here). Here's what I've tried using github-script simply does not work. It does not give write access to a pull request I remembered that if…
jjmerelo
  • 22,578
  • 8
  • 40
  • 86
1
vote
2 answers

GitHub Action error: "Top level 'runs:' section is required"

I am trying to get a private GitHub action to work within my private GitHub org. The private repo that contains these workflow 'templates' has this simple file structure as I'm just trying to get the bare minimum to work: . ├── .git ├── test │ ├──…
jrkt
  • 2,615
  • 5
  • 28
  • 48
1
vote
1 answer

Environment Variables in a JavaScript Github Action

I am writing a javascript github action. Inside my action.yml, I have the following: runs: using: node12 main: ./index.js Inside my index.js, I am calling an api which requires a secret key. I want to use my own secret key. I don't want users…
Mohammad Abed
  • 93
  • 1
  • 10
1
vote
1 answer

Using GitHub actions like GitLab CI/CD

I just started to migrate all my GitLab repositories to GitHub. I wasn't using GitHub for a while so I stumbled over the - at least for me new feature - GitHub Actions. Since I just started a new project, I wanted to use GitHub Actions for build and…
user3906313
1
vote
1 answer

Github Actions using CMake, conan and Vulkan SDK fail because conanfile.py cannot be found

I am trying to build a Vulkan project using Github actions, CMake and conan package manager. Here is my Github setup: https://github.com/inexorgame/vulkan-renderer/blob/hanni/github_actions/.github/workflows/build_cmake.yml name: CMake Build…
1
vote
1 answer

How to populate an environment variable from a Github Secret via bash commands

I cannot figure out how to populate a Github Action job environment variable via bash command. I have tried this: - name: Environment Variables run: | echo ::set-env name=DJANGO_SECRET_KEY::"${{ secrets.DJANGO_SECRET_KEY }}" and…
COB
  • 236
  • 1
  • 14
1
vote
1 answer

UWP project failed on GitHub Actions because certificate is invalid APPX0107

I have a project in GitHub that have UWP project in here. I want to setup GitHub Actions for this project with this main.yml configuration When GitHub Actions want to build my solution with below commands - name: Library build run: | cd…
sorosh_sabz
  • 2,356
  • 2
  • 32
  • 53
1
vote
2 answers

Trouble trying to run queued Github Actions

I got a case where two GitHub Actions are running concurrently (as intended) with a push on master branch. Problem is, I want it to run in a queue instead and I couldn't find any helpful doc about it. In my case, I needed the action to only run…
1
vote
1 answer

Copy files from calling repo to action

I want to create a github docker container action that uses files from the repository using the action. Do I need to check the repository out by myself or can I specify a point where the files are copied if it was checked out before?
dan1st
  • 12,568
  • 8
  • 34
  • 67
0
votes
0 answers

Unable to save multiline output from a Javascript Github Action to GITHUB_ENV

I implemented a Javascript-based GitHub Action for converting a .yml file into a multiline string with the specific format. Unfortunately, I can't access the output of the action. I have already learned that handling multi-line output is…
SkogensKonung
  • 601
  • 1
  • 9
  • 22
0
votes
0 answers

GitHub Actions JavaScript Action Stuck at ImgBurn

I made a GitHub action, which uses JavaScript to make a disk image with some commands and stuff. But now it is stuck at ImgBurn making the image using the command line, while it has the NOIMAGEDETAILS parameter. If someone could help me fix it. Here…
0
votes
1 answer

Error: buildx failed with: ERROR: invalid tag "***/e2bdy:": invalid reference format

I'm using github action to build&push docker image, but it failed with err. errors screenshots buildx failed with: ERROR: invalid tag "***/e2bdy:": invalid reference format Is there anything wrong with my action.yml ? Local build is…
musnow
  • 11
  • 3
0
votes
0 answers

Github deploy pages from private repo with actions

I am trying to get a public github page from a private source repo following this tutorial which utilizes PUBLIC and PRIVATE key variables from ssh-keygen -t rsa -b 4096 -C "$(git config user.email)" -f deployment -N "" I have the same setup as…
D.A.
  • 140
  • 1
  • 12
0
votes
0 answers

Is it possible to change runs-on label in Github-Actions based on user input

Is there any way of changing runs-on value based on the user input from Github actions? Checked the resources and questions however could not find any suitable approach. Does anyone have a tip on this? Here is the input field, if it is checked then…