Skip to content

Template repository for GitHub Actions

License

Notifications You must be signed in to change notification settings

devops-infra/template-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action template

Template repository for GitHub Actions

Dockerized as 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

Master branch Other branches
GitHub repo GitHub code size in bytes GitHub last commit GitHub license
DockerHub Docker version Image size Docker Pulls

Reference

    - name: Run the Action
      uses: devops-infra/template-action@v0.1
      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.

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/template-action@v0.1

Run the Action with set inputs.

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/template-action@v0.1
        env:
          bar: foo
        with:
          bar: baz