Skip to content

andry81-devops/github-action-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

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

All tutorials: https://github.com/andry81/index#tutorials

Related actions:

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

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


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