Skip to content

Latest commit

 

History

History
96 lines (77 loc) · 3.2 KB

README.md

File metadata and controls

96 lines (77 loc) · 3.2 KB

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/[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.

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.

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