An open API service indexing awesome lists of open source software.

https://github.com/andry81-devops/github-action-extensions

Tutorial to setup GitHub action extensions. • :page_with_curl: https://github.com/andry81-stats/github-action-extensions--gh-stats :page_with_curl:
https://github.com/andry81-devops/github-action-extensions

action-extension actions extensions github github-action tutorial workflow

Last synced: 9 months ago
JSON representation

Tutorial to setup GitHub action extensions. • :page_with_curl: https://github.com/andry81-stats/github-action-extensions--gh-stats :page_with_curl:

Awesome Lists containing this project

README

          



GitHub views|any|total
GitHub views|any|14d


GitHub views|unique per day|total
GitHub views|unique per day|14d



GitHub clones|any|total
GitHub clones|any|14d


GitHub clones|unique per day|total
GitHub clones|unique per day|14d


donate

---

# Tutorial to setup GitHub action extensions

> [!TIP]
> All tutorials: https://github.com/andry81/index#tutorials

Related actions:

* https://github.com/andry81-devops/gh-action--git-checkout

* https://github.com/andry81-devops/gh-action--check-os-version

## gh-action--git-checkout@master

Extends `actions/checkout` action script mainly to be able to checkout an empty repository with additional features.

You need simply replace the `uses` value in a workflow script:

`actions/checkout@v3` -> `andry81-devops/gh-action--git-checkout@master`

If remote repository exists but has no any branch reference, then the action script does use `mkdir` bash shell command to create a directory from the `path` parameter and `git init` to initialize a working copy.

Additionally, the action script does use `mkdir -p` bash shell command to allocate a working copy subdirectories from the `mkdir-p` extra parameter.

[Example snippet](https://github.com/andry81-devops/gh-action--git-checkout#example-snippet)

## gh-action--check-os-version@master

> [!WARNING]
> Currently implemented ONLY a Linux version details check.

Use set of commands and features to request OS version details:

* > ${{ runner.os }}

* > echo "$ImageOS: $ImageVersion"

* > cat '/etc/os-release'

* > lsb_release -a

* > hostnamectl

* > uname -r

[Example snippet](https://github.com/andry81-devops/gh-action--check-os-version#example-snippet)

---

> [!NOTE]
> See REUSE section for details if you have multiple repositories and want to store all GitHub workflow scripts (`.github/workflows/*.yml`) in a single repository.

## Known Issues

https://github.com/andry81-devops/gh-known-issues#known-issues

## Last known issues updates

https://github.com/andry81-devops/gh-known-issues#last-known-issues-updates