Skip to content

Reusable workflows for GitHub Actions

Notifications You must be signed in to change notification settings

84codes/actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 

Repository files navigation

Reusable workflows for GitHub Actions

See the docs at https://docs.github.com/en/actions/learn-github-actions/reusing-workflows

Working at 84codes? Please note that this repository is public!


Example workflows

Ruby CI

See ruby-ci.yml for all inputs supported by the workflow.

name: CI

on:
  push:
  pull_request:
  workflow_dispatch:

jobs:
  test:
    uses: 84codes/actions/.github/workflows/ruby-ci.yml@main
    with:
      ruby-lint: true # needs both "github-token" and "repo-github-token" secrets
    secrets:
      repo-github-token: ${{ secrets.GITHUB_TOKEN }} # if project uses ruby-lint
      github-token: ${{ secrets.ORG_GITHUB_TOKEN_FOR_CI }} # if project uses private GitHub repos dependencies
      pkg-github-com: ${{ secrets.PACKAGES_PAT }} # if project uses private GitHub Packages

Heroku deploy

heroku-app is optional, uses the repo name by default.

name: Deploy to Heroku

on:
  workflow_run:
    workflows: [CI]
    types: [completed]

jobs:
  heroku:
    uses: 84codes/actions/.github/workflows/heroku.yml@main
    with:
      heroku-app: myapp
    secrets:
      heroku-key: ${{ secrets.HEROKU_API_KEY }}

About

Reusable workflows for GitHub Actions

Resources

Stars

Watchers

Forks

Languages