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:
- Host: GitHub
- URL: https://github.com/andry81-devops/github-action-extensions
- Owner: andry81-devops
- License: mit
- Created: 2022-04-15T11:03:59.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-02T09:12:16.000Z (11 months ago)
- Last Synced: 2025-03-25T23:22:30.430Z (9 months ago)
- Topics: action-extension, actions, extensions, github, github-action, tutorial, workflow
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
---
# 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