https://github.com/devops-infra/template-action
Template repository for GitHub Actions
https://github.com/devops-infra/template-action
automation christophshyper ci-cd cicd devops devops-workflow docker dockerhub github-action github-action-docker github-actions github-actions-docker iaac template template-repository
Last synced: 7 months ago
JSON representation
Template repository for GitHub Actions
- Host: GitHub
- URL: https://github.com/devops-infra/template-action
- Owner: devops-infra
- License: mit
- Created: 2020-04-09T18:37:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-06T12:55:38.000Z (8 months ago)
- Last Synced: 2024-11-06T13:55:19.403Z (8 months ago)
- Topics: automation, christophshyper, ci-cd, cicd, devops, devops-workflow, docker, dockerhub, github-action, github-action-docker, github-actions, github-actions-docker, iaac, template, template-repository
- Language: Dockerfile
- Homepage: https://shyper.pro
- Size: 133 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# GitHub Action template
**Template repository for GitHub Actions**
Dockerized as [devopsinfra/template-action](https://hub.docker.com/repository/docker/devopsinfra/template-action).
**This is just a template repository.**
Features:
* Baseline for `Dockerfile`, `entrypoint.sh`, `Makefile`.
* Templates for Pull Requests and Issues.
* Actions for a default automation.
* Includes Code of Conduct, Contributing and Codeowners.# Badge swag
[](https://github.com/devops-infra/template-action/actions?query=workflow%3A%22Master+branch%22)
[](https://github.com/devops-infra/template-action/actions?query=workflow%3A%22Other+branches%22)
[




](https://github.com/devops-infra/template-action "shields.io")
[




](https://hub.docker.com/r/devopsinfra/template-action "shields.io")## Reference
```yaml
- name: Run the Action
uses: devops-infra/[email protected]
env:
bazbar: barfoo
with:
foobar: bazbar
```Environment Variable | Required | Description
:--- | :---: | :---
bazbar | No | Environment variable for `env: ...`.Input Variable | Required | Default | Description
:--- | :---: | :---: | :---
foobar | No | `foobar` | Some input variable for `with: ...`.Outputs | Description
:--- | :---
foobar | Output from action.## Examples
Run the Action with defaults.
```yaml
name: Run the Action on each commit
on:
push
jobs:
template-action:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run the Action
uses: devops-infra/[email protected]
```Run the Action with set inputs.
```yaml
name: Run the Action on each commit
on:
push
jobs:
template-action:
runs-on: ubuntu-latest
steps:
- name: Checkout repoistory
uses: actions/checkout@v2
- name: Run the Action
uses: devops-infra/[email protected]
env:
bar: foo
with:
bar: baz
```