Actions for the gCubeActionExecutor pipeline.
Go to file
Roberto Cirillo a5d64bc0d9 add new grep script 2024-02-27 15:23:44 +01:00
16-01-2023-grepkeys extend search in every file 2023-01-19 09:50:45 +01:00
18-05-22-grepString update repo list 2022-05-23 15:03:10 +02:00
24-01-2021-AddLicenseToAllRepos Add messages to License action. 2021-01-31 22:32:00 -05:00
24-01-2021-CreateTestFile Test action to create and add a file. 2021-01-26 20:47:53 -05:00
27-01-2021-grepString add new grep script 2024-02-27 15:23:44 +01:00
repos Upload files to 'repos' 2021-10-27 16:05:31 +02:00
README.md Update 'README.md' 2022-06-05 04:08:02 +02:00
gCubeSystem_all_sorted_2023-01-16_10-52-49.txt removed tabular-data-manager component for testing purpose 2023-01-17 10:00:27 +01:00
gCubeSystem_all_sorted_2024-02-27_15-18-15.txt generate new repo list 2024-02-27 15:19:15 +01:00
generateRepoList.sh change python command to python3; repo list generated 2023-01-16 10:55:18 +01:00

README.md

Actions for the gCubeActions Pipeline

Container for Actions executed with the gCubeActionExecutor pipeline.

Action

An Action is a script that is executed on a selected git repository. Every command in the Action must be written assuming the root folder of the repository as working folder.

Exit Code

An Action is successful if it returns 0 as exit code. Any code different from 0 makes the Action fails and halts the execution of the pipeline process.

An exit code can be returned at any point of the Action by invoking the exit code command. Unless exit is used, the exit code of the Action is the one returned by the last command of the Action.

List of Repositories

Each action is executed on a list of repositories. The expected format of the file with the list is one repo name for each row.

For example:

repo_name1
repo_name2
repo_name3
...

The URL of the Gitea organization where to find these repositories is passed as parameter of the gCubeActionExecutor pipeline.

How to Generate the List

The script generateRepoList.sh can be executed any time to generate an up-to-date list of repositories in the gCubeSystem organization. If a different organization has to be scanned, we can easily change the script or make it parametric.

The output of the script is a file named gCubeSystem_all_sorted_$timestamp.txt. The list in the output file is alphabetically ordered.