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

Github action Save images with CURL, it saves blank images

I am trying to update app icon before building app using Github action using this command - name: add icon run: curl https://www.example.org/precomposed.png > android/app/src/main/res/drawable/ic_launcher_milla.png This code make a black…
Midhilaj
  • 4,905
  • 9
  • 45
  • 88
0
votes
1 answer

Failing to execute a command inside a custom GitHub action

I created a custom JavaScript GitHub action that needs to run simple git and node commands. I used the exec npm module provided by GitHub. Every time I try to run a command it fails. For example: exec.exec('git config user.name "Package…
MkMan
  • 1,779
  • 1
  • 14
  • 27
0
votes
2 answers

Bash: chmod +x localizable.sh : Permission denied

I am running a .sh script and it runs fine locally (sh /Users/Me/Documents/development/MyRepo/localizable.sh). However, when I add it to Github actions, I get permission denied. Exact error: Run chmod +x localizable.sh chmod +x localizable.sh …
user1107173
  • 10,334
  • 16
  • 72
  • 117
0
votes
1 answer

Making a private Git repository public automatically after a period of time

Does anyone know a way to automatically make a Github Repository Public after a certain number of days. I want to keep my Github repository private for a certain period of time post which it automatically becomes public. Is this even possible? Or…
0
votes
1 answer

How is GitHub Action's name identified when the workflow is running?

I published a GitHub Action with name Marketly Incr Version and with version as v1.1. When I referenced the action in yml as uses: actions/Marketly-Incr-Version@v1.1 , I get the error below. I also tried lower case everything and still got the same…
frosty
  • 2,421
  • 6
  • 26
  • 47
0
votes
1 answer

Github Action: build from cache in auto-label-merge-conflicts?

In the following workflow, I want to add cache functionality so that, every time it will build from scratch. this is the workflow: # This workflow will do # a clean install of node deps # build the source code # run test across different versions of…
0
votes
1 answer

how to read env variables within github action which is used in docker-compose.yml file?

I want to run some test cases on GitHub action when pull request is sent. I have some env variables which are used in various files. I faced an issue to read env variables from only one file, which is docker-compose.yml. how can I read that within…
Ashik
  • 2,888
  • 8
  • 28
  • 53
0
votes
1 answer

How to use the Cake build system with GitHub Action

I want to use the Cake build system for building my project and I want use it in GitHub action for helping continuous integration and more. But I couldn't find any useful document to what are you doing. Is there one? Is there any documentation or…
sorosh_sabz
  • 2,356
  • 2
  • 32
  • 53
0
votes
1 answer

How can I set command line arugment in github action?

My aim is to create github workflow for publishing the plugin. Here I have to enter some command line arguments after executing some command. Can someone please tell me, whether there is a way to set the command line arguments in github action ?
lnash
  • 53
  • 10
-1
votes
2 answers

How do you use another action from a custom GitHub node action?

I'm writing a JavaScript-based GitHub action (using https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action) and now I want to checkout a repository using, for example, actions/checkout@v3. I already know how to do this in a…
sffortytwo
  • 127
  • 1
  • 7
-1
votes
1 answer

Git: Copy folder from master to the root of another branch

I have a static website which is generating an output folder to the MyBlog/output in the master branch. But I want output to be the source of my GH Pages, I am looking for a way to use output as the root of gh-pages branch. That's my…
1 2 3
11
12